Only call getNativeHandle on macOS
This commit is contained in:
parent
e1281342f6
commit
104cae8f68
1 changed files with 5 additions and 2 deletions
|
@ -11,12 +11,15 @@ describe('nativeImage module', () => {
|
|||
assert.equal(empty.isEmpty(), true)
|
||||
assert.equal(empty.getAspectRatio(), 1)
|
||||
assert.equal(empty.toDataURL(), 'data:image/png;base64,')
|
||||
assert.deepEqual(empty.getNativeHandle(), [])
|
||||
assert.deepEqual(empty.getBitmap(), [])
|
||||
assert.deepEqual(empty.getSize(), {width: 0, height: 0})
|
||||
assert.deepEqual(empty.getBitmap(), [])
|
||||
assert.deepEqual(empty.toBitmap(), [])
|
||||
assert.deepEqual(empty.toJPEG(100), [])
|
||||
assert.deepEqual(empty.toPNG(), [])
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
assert.deepEqual(empty.getNativeHandle(), [])
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue