Fix linting errors

This commit is contained in:
Arvin Sevilla 2020-02-19 09:15:26 +08:00
parent 5f38221338
commit abb257bf8d

View file

@ -616,10 +616,10 @@ module.exports.describe = function({testRunner, expect, defaultBrowserOptions, p
}); });
}); });
describe('regexp', function () { describe('regexp', function() {
it ('should work with regular expression passed from a different context', async({page, server}) => { it('should work with regular expression passed from a different context', async({page, server}) => {
const ctx = vm.createContext() const ctx = vm.createContext();
const regexp = vm.runInContext('new RegExp("empty\\.html")', ctx) const regexp = vm.runInContext('new RegExp("empty\\.html")', ctx);
await page.route(regexp, request => { await page.route(regexp, request => {
expect(request.url()).toContain('empty.html'); expect(request.url()).toContain('empty.html');
@ -635,8 +635,8 @@ module.exports.describe = function({testRunner, expect, defaultBrowserOptions, p
const response = await page.goto(server.EMPTY_PAGE); const response = await page.goto(server.EMPTY_PAGE);
expect(response.ok()).toBe(true); expect(response.ok()).toBe(true);
}) });
}) });
}; };
/** /**