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

This commit is contained in:
Darío Kondratiuk 2020-03-17 13:05:33 -03:00 committed by GitHub
parent a9ab9b0dc0
commit 840146273e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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