path -> paths
This commit is contained in:
parent
022c2c0d8c
commit
44376374b0
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ describe('nativeImage module', () => {
|
||||||
assert.equal(image.getSize().width, 538);
|
assert.equal(image.getSize().width, 538);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('loads images from path with `..` segments', () => {
|
it('loads images from paths with `..` segments', () => {
|
||||||
const imagePath = `${path.join(__dirname, 'fixtures', 'api')}${path.sep}..${path.sep}${path.join('assets', 'logo.png')}`;
|
const imagePath = `${path.join(__dirname, 'fixtures', 'api')}${path.sep}..${path.sep}${path.join('assets', 'logo.png')}`;
|
||||||
const image = nativeImage.createFromPath(imagePath);
|
const image = nativeImage.createFromPath(imagePath);
|
||||||
assert(!image.isEmpty());
|
assert(!image.isEmpty());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue