refactor: ginify DownloadItem (#22924)

This commit is contained in:
Jeremy Apthorp 2020-04-02 17:22:46 -07:00 committed by GitHub
parent 6159066c26
commit 0a78ab4b98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 153 additions and 101 deletions

View file

@ -311,7 +311,7 @@ describe('session module', () => {
const { item, itemUrl, itemFilename } = await downloadPrevented;
expect(itemUrl).to.equal(url);
expect(itemFilename).to.equal('mockFile.txt');
expect(() => item.getURL()).to.throw('Object has been destroyed');
expect(() => item.getURL()).to.throw('DownloadItem used after being destroyed');
});
});