mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add assert for non-existent .ico
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user