Print error when mkdir failed
This commit is contained in:
parent
c36c4e36c5
commit
b717add81b
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ describe 'third-party module', ->
|
||||||
it 'emits file events correctly', (done) ->
|
it 'emits file events correctly', (done) ->
|
||||||
pathwatcher = require 'pathwatcher'
|
pathwatcher = require 'pathwatcher'
|
||||||
temp.mkdir 'dir', (err, dir) ->
|
temp.mkdir 'dir', (err, dir) ->
|
||||||
assert err == null
|
assert err == null, String(err)
|
||||||
file = path.join dir, 'file'
|
file = path.join dir, 'file'
|
||||||
fs.writeFileSync file, 'content'
|
fs.writeFileSync file, 'content'
|
||||||
watcher = pathwatcher.watch file, (event) ->
|
watcher = pathwatcher.watch file, (event) ->
|
||||||
|
|
Loading…
Reference in a new issue