Skip to content

Commit 3597304

Browse files
committed
test: add failing test for #116
1 parent 1e95bab commit 3597304

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

__tests__/prefer-await-to-callbacks.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ ruleTester.run('prefer-await-to-callbacks', rule, {
1414
valid: [
1515
'async function hi() { await thing().catch(err => console.log(err)) }',
1616
'async function hi() { await thing().then() }',
17-
'async function hi() { await thing().catch() }'
17+
'async function hi() { await thing().catch() }',
18+
'dbConn.on("error", err => { console.error(err) })'
1819
],
1920

2021
invalid: [

0 commit comments

Comments
 (0)