Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix tests.
  • Loading branch information
paulmillr committed Jan 6, 2013
1 parent f4ff29d commit 8cb9906
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/chokidar-test.coffee
Expand Up @@ -97,7 +97,7 @@ describe 'chokidar', ->

@watcher.add testDir

xit 'should notice when a file appears in a new directory', (done) ->
it 'should notice when a file appears in a new directory', (done) ->
spy = sinon.spy()
testDir = getFixturePath 'subdir'
testPath = getFixturePath 'subdir/add.txt'
Expand All @@ -109,9 +109,10 @@ describe 'chokidar', ->
spy.should.not.have.been.callled
fs.mkdirSync testDir, 0o755
fs.writeFileSync testPath, 'hello'
spy.should.have.been.calledOnce
spy.should.have.been.calledWith testPath
done()
delay =>
spy.should.have.been.calledOnce
spy.should.have.been.calledWith testPath
done()

describe 'is-binary', ->
it 'should be a function', ->
Expand Down

0 comments on commit 8cb9906

Please sign in to comment.