test: fix failing http spec (#27525)
This commit is contained in:
parent
0bb1ba822a
commit
18f4c3129d
1 changed files with 2 additions and 2 deletions
|
@ -277,12 +277,12 @@ describe('chrome extensions', () => {
|
|||
it('can cancel http requests', async () => {
|
||||
await w.loadURL(url);
|
||||
await customSession.loadExtension(path.join(fixtures, 'extensions', 'chrome-webRequest'));
|
||||
await expect(fetch(w.webContents, url)).to.eventually.be.rejectedWith(TypeError);
|
||||
await expect(fetch(w.webContents, url)).to.eventually.be.rejectedWith('Failed to fetch');
|
||||
});
|
||||
|
||||
it('does not cancel http requests when no extension loaded', async () => {
|
||||
await w.loadURL(url);
|
||||
await expect(fetch(w.webContents, url)).to.not.be.rejectedWith(TypeError);
|
||||
await expect(fetch(w.webContents, url)).to.not.be.rejectedWith('Failed to fetch');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue