Update asar specs

This commit is contained in:
Cheng Zhao 2015-01-19 15:36:56 -08:00
parent 3d858bee95
commit 96f24b88ea

View file

@ -395,12 +395,6 @@ describe 'asar package', ->
describe 'original-fs module', ->
originalFs = require 'original-fs'
it 'uses the original fs api', ->
changedApis = ['readFile', 'stat', 'lstat', 'realpath', 'exists']
unchangedApis = ['read', 'write', 'writeFile', 'close']
assert.notStrictEqual fs[api], originalFs[api] for api in changedApis
assert.strictEqual fs[api], originalFs[api] for api in unchangedApis
it 'treats .asar as file', ->
file = path.join fixtures, 'asar', 'a.asar'
stats = originalFs.statSync file