Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(web): Remove unused argument #1410

Merged
merged 1 commit into from
Mar 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/web.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ module.exports.describe = function({testRunner, expect, defaultBrowserOptions, p
});

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']);
});

Expand Down