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:
Jack Franklin
2020-06-23 15:02:09 +01:00
committed by GitHub
parent 70a900e93b
commit 381b0f833c
5 changed files with 11 additions and 48 deletions

View File

@@ -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 () => {