Assert image size as well

This commit is contained in:
Kevin Sawicki 2016-03-07 09:28:08 -08:00
parent 8215d661ca
commit 7692edf50e

View file

@ -10,6 +10,8 @@ describe('nativeImage module', () => {
const nonAbsolutePath = `${path.join(__dirname, 'fixtures', 'api')}${path.sep}..${path.sep}${path.join('assets', 'logo.png')}`;
const image = nativeImage.createFromPath(nonAbsolutePath);
assert(!image.isEmpty());
assert.equal(image.getSize().height, 190);
assert.equal(image.getSize().width, 538);
});
});
});