overrideAPISync process, 'dlopen', 1
overrideAPISync require('module')._extensions, '.node', 1
overrideAPISync fs, 'openSync'
- overrideAPISync child_process, 'fork'
done()
child.send 'message'
- it 'throws ENOENT error when can not find file', ->
- p = path.join fixtures, 'asar', 'a.asar', 'not-exist'
- throws = -> child_process.fork p
- assert.throws throws, /ENOENT/
-
it 'supports asar in the forked js', (done) ->
file = path.join fixtures, 'asar', 'a.asar', 'file1'
child = child_process.fork path.join(fixtures, 'module', 'asar.js')