Make Atom SpacePen view's default to empty object (where needed)

This commit is contained in:
Corey Johnson
2012-05-16 10:35:50 -07:00
parent a866d53e96
commit 399fc71b3c
13 changed files with 20 additions and 20 deletions

View File

@@ -17,7 +17,7 @@ describe "Autocomplete", ->
describe "@activate(rootView)", ->
it "activates autocomplete on all existing and future editors (but not on autocomplete's own mini editor)", ->
rootView = new RootView(pathToOpen: require.resolve('fixtures/sample.js'))
rootView = new RootView(require.resolve('fixtures/sample.js'))
rootView.simulateDomAttachment()
Autocomplete.activate(rootView)
leftEditor = rootView.activeEditor()

View File

@@ -7,7 +7,7 @@ describe 'FileFinder', ->
[rootView, finder] = []
beforeEach ->
rootView = new RootView(pathToOpen: require.resolve('fixtures/sample.js'))
rootView = new RootView(require.resolve('fixtures/sample.js'))
rootView.enableKeymap()
rootView.activateExtension(FileFinder)
finder = FileFinder.instance

View File

@@ -10,7 +10,7 @@ describe "TreeView", ->
[rootView, project, treeView, sampleJs, sampleTxt] = []
beforeEach ->
rootView = new RootView(pathToOpen: require.resolve('fixtures/'))
rootView = new RootView(require.resolve('fixtures/'))
project = rootView.project
rootView.activateExtension(TreeView)
@@ -421,7 +421,7 @@ describe "TreeView", ->
fs.makeDirectory(dirPath)
fs.write(filePath, "doesn't matter")
rootView = new RootView(pathToOpen: rootDirPath)
rootView = new RootView(rootDirPath)
project = rootView.project
treeView = new TreeView(rootView)
treeView.root = treeView.root