chore: enforce naming of errors in catch blocks (#5763)

This commit is contained in:
Jack Franklin
2020-04-28 14:16:28 +01:00
committed by GitHub
parent 3bf9bd199d
commit 1ccfbcb684
35 changed files with 191 additions and 186 deletions

View File

@@ -46,7 +46,7 @@ describe('querySelector', function() {
const {page} = getTestState();
let error = null;
await page.$eval('section', e => e.id).catch(e => error = e);
await page.$eval('section', e => e.id).catch(error_ => error = error_);
expect(error.message).toContain('failed to find element matching selector "section"');
});
});