Skip to content

Commit 9646c28

Browse files
committed
spec: native-image should read asar archive
1 parent 3678f13 commit 9646c28

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

spec/asar-spec.coffee

+6
Original file line numberDiff line numberDiff line change
@@ -430,3 +430,9 @@ describe 'asar package', ->
430430

431431
it 'does not touch global fs object', ->
432432
assert.notEqual fs.readdir, gfs.readdir
433+
434+
describe 'native-image', ->
435+
it 'reads image from asar archive', ->
436+
p = path.join fixtures, 'asar', 'logo.asar', 'logo.png'
437+
logo = require('native-image').createFromPath p
438+
assert.deepEqual logo.getSize(), {width: 55, height: 55}

spec/fixtures/asar/logo.asar

15.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)