mirror of
https://github.com/electron/electron.git
synced 2026-01-11 00:18:02 -05:00
test: fix failing http spec (#27525)
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user