mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: enforce naming of errors in catch blocks (#5763)
This commit is contained in:
@@ -72,8 +72,8 @@ describeChromeOnly('Target.createCDPSession', function() {
|
||||
let error = null;
|
||||
try {
|
||||
await client.send('Runtime.evaluate', {expression: '3 + 1', returnByValue: true});
|
||||
} catch (e) {
|
||||
error = e;
|
||||
} catch (error_) {
|
||||
error = error_;
|
||||
}
|
||||
expect(error.message).toContain('Session closed.');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user