Fix test failures

1. Setting the default directory to the root makes it to read navigate files, which takes forever. Maybe we should set a timeout, but not for now.
2. We don't want to read the directory every time we toggle on. After toggle off, the package should still be there. Yes, this will consume lots of memory, but it would be like that for now.
This commit is contained in:
Seong Jae Lee
2015-04-12 01:13:59 -07:00
parent 4d1efafea1
commit 67a1792d1b
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
module.exports =
configDefaults:
directory: '/'
directory: 'testdata'
notationalVelocityView: null
-1
View File
@@ -27,4 +27,3 @@ describe "NotationalVelocity", ->
runs ->
expect(atom.workspaceView.find('.notational-velocity')).toExist()
atom.commands.dispatch atom.workspaceView.element, 'notational-velocity:toggle'
expect(atom.workspaceView.find('.notational-velocity')).not.toExist()
+1 -1
View File
@@ -2,4 +2,4 @@ NotationalVelocityView = require '../lib/notational-velocity-view'
describe "NotationalVelocityView", ->
it "has one valid test", ->
expect("life").toBe "easy"
expect("life").toBe "life"