Only call getNativeHandle on macOS

This commit is contained in:
Kevin Sawicki 2017-01-25 13:52:18 -08:00
parent e1281342f6
commit 104cae8f68

View file

@ -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(), [])
}
})
})