Add assert for non-existent .ico
This commit is contained in:
Родитель
a886261518
Коммит
8fb86e10fc
|
@ -9,6 +9,7 @@ describe('nativeImage module', () => {
|
|||
it('returns an empty image for invalid paths', () => {
|
||||
assert(nativeImage.createFromPath('').isEmpty())
|
||||
assert(nativeImage.createFromPath('does-not-exist.png').isEmpty())
|
||||
assert(nativeImage.createFromPath('does-not-exist.ico').isEmpty())
|
||||
})
|
||||
|
||||
it('loads images from paths relative to the current working directory', () => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче