Add more failure asserts for nativeImage.createFromPath

This commit is contained in:
Kevin Sawicki 2016-09-21 10:48:24 -07:00
Родитель 546c0e7822
Коммит f8236c1a65
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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', () => {