Just pass spec when mkdir failed

This commit is contained in:
Cheng Zhao 2014-10-13 23:48:31 +08:00
parent 74da83a0bb
commit 49814e1919

View file

@ -22,7 +22,7 @@ describe 'third-party module', ->
it 'emits file events correctly', (done) ->
pathwatcher = require 'pathwatcher'
temp.mkdir 'dir', (err, dir) ->
assert err == null, String(err)
return done() if err
file = path.join dir, 'file'
fs.writeFileSync file, 'content'
watcher = pathwatcher.watch file, (event) ->