Assert image size as well
This commit is contained in:
parent
8215d661ca
commit
7692edf50e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue