Skip to content

Commit

Permalink
test(web): Remove unused variable (#1410)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored Mar 17, 2020
1 parent a9ab9b0 commit 8401462
Showing 1 changed file with 2 additions and 2 deletions.
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, 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']);
});

Expand Down

0 comments on commit 8401462

Please sign in to comment.