Remove Duplicate Require Statements and Unify Syntax on '

This commit is contained in:
case 2016-01-15 14:35:28 -06:00
parent 8677ca3a10
commit 8c5c795b35
13 changed files with 29 additions and 32 deletions

View File

@ -1,4 +1,4 @@
_ = require "underscore-plus"
_ = require 'underscore-plus'
path = require 'path'
temp = require 'temp'
Package = require '../src/package'

View File

@ -1,7 +1,7 @@
path = require "path"
path = require 'path'
fs = require 'fs-plus'
temp = require "temp"
AtomPortable = require "../src/browser/atom-portable"
temp = require 'temp'
AtomPortable = require '../src/browser/atom-portable'
portableModeCommonPlatformBehavior = (platform) ->
describe "with ATOM_HOME environment variable", ->

View File

@ -2,7 +2,6 @@ path = require 'path'
_ = require 'underscore-plus'
grim = require 'grim'
marked = require 'marked'
listen = require '../src/delegated-listener'
formatStackTrace = (spec, message='', stackTrace) ->

View File

@ -3,9 +3,9 @@
# See https://github.com/atom/electron/issues/2033
process.env.DEBUG='*'
path = require('path')
temp = require('temp').track()
CompileCache = require('../src/compile-cache')
path = require 'path'
temp = require('temp').track();
CompileCache = require '../src/compile-cache'
describe "Babel transpiler support", ->
originalCacheDir = null

View File

@ -1,5 +1,5 @@
path = require 'path'
BufferedNodeProcess = require '../src/buffered-node-process'
BufferedNodeProcess = require '../src/buffered-node-process'
describe "BufferedNodeProcess", ->
it "executes the script in a new process", ->

View File

@ -1,5 +1,5 @@
path = require 'path'
temp = require('temp').track()
temp = require('temp')track();
Babel = require 'babel-core'
CoffeeScript = require 'coffee-script'
{TypeScriptSimple} = require 'typescript-simple'

View File

@ -1,7 +1,7 @@
DefaultDirectoryProvider = require "../src/default-directory-provider"
path = require "path"
DefaultDirectoryProvider = require '../src/default-directory-provider'
path = require 'path'
fs = require 'fs-plus'
temp = require "temp"
temp = require 'temp'
describe "DefaultDirectoryProvider", ->
describe ".directoryForURISync(uri)", ->

View File

@ -1,6 +1,6 @@
DefaultDirectorySearcher = require "../src/default-directory-searcher"
Task = require "../src/task"
path = require "path"
DefaultDirectorySearcher = require '../src/default-directory-searcher'
Task = require '../src/task'
path = require 'path'
describe "DefaultDirectorySearcher", ->
[searcher, dirPath] = []

View File

@ -1,11 +1,11 @@
path = require "path"
http = require "http"
temp = require("temp").track()
remote = require "remote"
async = require "async"
{map, extend, once, difference} = require "underscore-plus"
{spawn, spawnSync} = require "child_process"
webdriverio = require "../../../build/node_modules/webdriverio"
path = require 'path'
http = require 'http'
temp = require('temp').track()
remote = require 'remote'
async = require 'async'
{map, extend, once, difference} = require 'underscore-plus'
{spawn, spawnSync} = require 'child_process'
webdriverio = require '../../../build/node_modules/webdriverio'
AtomPath = remote.process.argv[0]
AtomLauncherPath = path.join(__dirname, "..", "helpers", "atom-launcher.sh")

View File

@ -6,11 +6,11 @@ return unless process.env.ATOM_INTEGRATION_TESTS_ENABLED
# run them on Travis.
return if process.env.CI
fs = require "fs-plus"
path = require "path"
temp = require("temp").track()
runAtom = require "./helpers/start-atom"
CSON = require "season"
fs = require 'fs-plus'
path = require 'path'
temp = require('temp').track()
runAtom = require './helpers/start-atom'
CSON = require 'season'
describe "Starting Atom", ->
atomHome = temp.mkdirSync('atom-home')

View File

@ -1,4 +1,3 @@
fs = require 'fs'
_ = require 'underscore-plus'
fs = require 'fs-plus'
path = require 'path'

View File

@ -7,7 +7,6 @@ path = require 'path'
BufferedProcess = require '../src/buffered-process'
{Directory} = require 'pathwatcher'
GitRepository = require '../src/git-repository'
temp = require "temp"
describe "Project", ->
beforeEach ->

View File

@ -1,5 +1,5 @@
TooltipManager = require '../src/tooltip-manager'
_ = require "underscore-plus"
_ = require 'underscore-plus'
describe "TooltipManager", ->
[manager, element] = []