mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
Add failing spec for restoring noAsar value
This commit is contained in:
@@ -744,6 +744,14 @@ describe('asar package', function () {
|
||||
fs.readdirSync(asar)
|
||||
}, /ENOTDIR/)
|
||||
})
|
||||
|
||||
it('is reset to its original value when execSync throws an error', function () {
|
||||
process.noAsar = false
|
||||
assert.throws(function () {
|
||||
ChildProcess.execSync(path.join(__dirname, 'does-not-exist.txt'))
|
||||
})
|
||||
assert.equal(process.noAsar, false)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user