Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test(web): Remove unused variable (#1410)

Darío Kondratiuk840146273ef3
diff --git a/test/web.spec.js b/test/web.spec.js
index 4fb46da0e6..eb72d4a38f 100644
--- a/test/web.spec.js
+++ b/test/web.spec.js
@@ -59,13 +59,13 @@ module.exports.describe = function({testRunner, expect, defaultBrowserOptions, b
});
it('should receive events', async({page, server}) => {
- const logs = await page.evaluate(async url => {
+ const logs = await page.evaluate(async () => {
const logs = [];
page.on('console', message => logs.push(message.text()));
await page.evaluate(() => console.log('hello'));
await page.evaluate(() => console.log('world'));
return logs;
- }, server.EMPTY_PAGE);
+ });
expect(logs).toEqual(['hello', 'world']);
});