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
|
@ -764,11 +764,11 @@ describe('webContents module', () => {
|
|||
|
||||
expect(() => {
|
||||
w.webContents.startDrag({ file: __filename } as any);
|
||||
}).to.throw('Must specify non-empty \'icon\' option');
|
||||
}).to.throw('\'icon\' parameter is required');
|
||||
|
||||
expect(() => {
|
||||
w.webContents.startDrag({ file: __filename, icon: path.join(mainFixturesPath, 'blank.png') });
|
||||
}).to.throw('Must specify non-empty \'icon\' option');
|
||||
}).to.throw(/Failed to load image from path (.+)/);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue