spec: Fix flags in fs.open

This commit is contained in:
Cheng Zhao 2015-01-28 21:25:48 -08:00
parent 17c191201c
commit b51e2f6453

View file

@ -328,7 +328,7 @@ describe 'asar package', ->
it 'throws ENOENT error when can not find file', (done) ->
p = path.join fixtures, 'asar', 'a.asar', 'not-exist'
fs.open p, (err, stats) ->
fs.open p, 'r', (err, stats) ->
assert.equal err.code, 'ENOENT'
done()