Support toDataURL without 1x representation

This commit is contained in:
Kevin Sawicki 2017-03-06 13:24:50 -08:00
parent 8eaf48e552
commit 0bbbeb307e
3 changed files with 14 additions and 6 deletions

View file

@ -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})