mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat(types): improve page.evaluate types (#6193)
This commit is contained in:
@@ -384,7 +384,7 @@ describe('request interception', function () {
|
||||
});
|
||||
const dataURL = 'data:text/html,<div>yo</div>';
|
||||
const text = await page.evaluate(
|
||||
(url) => fetch(url).then((r) => r.text()),
|
||||
(url: string) => fetch(url).then((r) => r.text()),
|
||||
dataURL
|
||||
);
|
||||
expect(text).toBe('<div>yo</div>');
|
||||
|
||||
Reference in New Issue
Block a user