Print error when mkdir failed

This commit is contained in:
Cheng Zhao 2014-10-13 19:08:23 +08:00
parent c36c4e36c5
commit b717add81b

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
assert err == null, String(err)
file = path.join dir, 'file'
fs.writeFileSync file, 'content'
watcher = pathwatcher.watch file, (event) ->