From: Cheng Zhao Date: Thu, 29 Jan 2015 05:25:48 +0000 (-0800) Subject: spec: Fix flags in fs.open X-Git-Tag: v0.21.1~8 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b51e2f6453319c752b7789ea7fd2ab67645b3dc8;p=electron.git spec: Fix flags in fs.open --- diff --git a/spec/asar-spec.coffee b/spec/asar-spec.coffee index 5e52f4ee..8455f7cb 100644 --- a/spec/asar-spec.coffee +++ b/spec/asar-spec.coffee @@ -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()