refactor: remove path from nativeImage converter (#26546)
This commit is contained in:
parent
4db3e3a08a
commit
3455136e9d
13 changed files with 167 additions and 103 deletions
|
@ -1541,6 +1541,15 @@ describe('app module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('dock.setIcon', () => {
|
||||
it('throws a descriptive error for a bad icon path', () => {
|
||||
const badPath = path.resolve('I', 'Do', 'Not', 'Exist');
|
||||
expect(() => {
|
||||
app.dock.setIcon(badPath);
|
||||
}).to.throw(/Failed to load image from path (.+)/);
|
||||
});
|
||||
});
|
||||
|
||||
describe('dock.bounce', () => {
|
||||
it('should return -1 for unknown bounce type', () => {
|
||||
expect(app.dock.bounce('bad type' as any)).to.equal(-1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue