mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: declare toBeGolden to TypeScript (#6080)
Which means we can avoid all the ts-expect-errors on any `toBeGolden` calls.
This commit is contained in:
@@ -666,8 +666,6 @@ describe('request interception', function () {
|
||||
return new Promise((fulfill) => (img.onload = fulfill));
|
||||
}, server.PREFIX);
|
||||
const img = await page.$('img');
|
||||
// TODO (@jackfranklin): toBeGolden type fix
|
||||
// @ts-expect-error
|
||||
expect(await img.screenshot()).toBeGolden('mock-binary-response.png');
|
||||
});
|
||||
it('should stringify intercepted request response headers', async () => {
|
||||
|
||||
Reference in New Issue
Block a user