fix: make sure invalid URL loads promises are fulfilled. (#41194)
* fix: make sure invalid URL loads promisses are fulfilled. * fixup! fix: make sure invalid URL loads promisses are fulfilled.
This commit is contained in:
parent
dac29f9949
commit
398ca2a019
2 changed files with 12 additions and 5 deletions
|
@ -519,6 +519,10 @@ describe('webContents module', () => {
|
|||
await expect(w.loadURL('file:non-existent')).to.eventually.be.rejected();
|
||||
await expect(w.loadURL('file:non-existent')).to.eventually.be.rejected();
|
||||
});
|
||||
|
||||
it('invalid URL load rejects', async () => {
|
||||
await expect(w.loadURL('invalidURL')).to.eventually.be.rejected();
|
||||
});
|
||||
});
|
||||
|
||||
describe('getFocusedWebContents() API', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue