Add more failure asserts for nativeImage.createFromPath
This commit is contained in:
parent
546c0e7822
commit
f8236c1a65
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,8 @@ describe('nativeImage module', () => {
|
|||
assert(nativeImage.createFromPath('').isEmpty())
|
||||
assert(nativeImage.createFromPath('does-not-exist.png').isEmpty())
|
||||
assert(nativeImage.createFromPath('does-not-exist.ico').isEmpty())
|
||||
assert(nativeImage.createFromPath(__dirname).isEmpty())
|
||||
assert(nativeImage.createFromPath(__filename).isEmpty())
|
||||
})
|
||||
|
||||
it('loads images from paths relative to the current working directory', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue