spec: graceful-fs should not touch global fs object
This commit is contained in:
parent
afd6f41e08
commit
3f8ad3bf75
1 changed files with 5 additions and 1 deletions
|
@ -414,7 +414,11 @@ describe 'asar package', ->
|
||||||
assert stats.isFile()
|
assert stats.isFile()
|
||||||
|
|
||||||
describe 'graceful-fs module', ->
|
describe 'graceful-fs module', ->
|
||||||
it 'recognize asar archvies', ->
|
|
||||||
gfs = require 'graceful-fs'
|
gfs = require 'graceful-fs'
|
||||||
|
|
||||||
|
it 'recognize asar archvies', ->
|
||||||
p = path.join fixtures, 'asar', 'a.asar', 'link1'
|
p = path.join fixtures, 'asar', 'a.asar', 'link1'
|
||||||
assert.equal gfs.readFileSync(p).toString(), 'file1\n'
|
assert.equal gfs.readFileSync(p).toString(), 'file1\n'
|
||||||
|
|
||||||
|
it 'does not touch global fs object', ->
|
||||||
|
assert.notEqual fs.readdir, gfs.readdir
|
||||||
|
|
Loading…
Reference in a new issue