fixes 10128
This commit is contained in:
parent
d38c9a4644
commit
5a48c1feed
2 changed files with 28 additions and 20 deletions
|
@ -99,6 +99,15 @@ describe('asar package', function () {
|
|||
})
|
||||
})
|
||||
|
||||
it('reads from a empty file with encoding', function (done) {
|
||||
var p = path.join(fixtures, 'asar', 'empty.asar', 'file1')
|
||||
fs.readFile(p, 'utf8', function (err, content) {
|
||||
assert.equal(err, null)
|
||||
assert.equal(content, '')
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
||||
it('reads a linked file', function (done) {
|
||||
var p = path.join(fixtures, 'asar', 'a.asar', 'link1')
|
||||
fs.readFile(p, function (err, content) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue