Skip to content

Commit

Permalink
test: fix failing http spec (electron#27525)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored Jan 28, 2021
1 parent 0bb1ba8 commit 18f4c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec-main/extensions-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

Expand Down

0 comments on commit 18f4c31

Please sign in to comment.