Support toDataURL without 1x representation
This commit is contained in:
parent
8eaf48e552
commit
0bbbeb307e
3 changed files with 14 additions and 6 deletions
|
@ -9,6 +9,7 @@ describe('nativeImage module', () => {
|
|||
it('returns an empty image', () => {
|
||||
const empty = nativeImage.createEmpty()
|
||||
assert.equal(empty.isEmpty(), true)
|
||||
assert.equal(empty.hasRepresentation(1.0), false)
|
||||
assert.equal(empty.getAspectRatio(), 1)
|
||||
assert.equal(empty.toDataURL(), 'data:image/png;base64,')
|
||||
assert.deepEqual(empty.getSize(), {width: 0, height: 0})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue