We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 739905d commit 6755db3Copy full SHA for 6755db3
test/prefer-t-throws.js
@@ -17,7 +17,6 @@ ruleTester.run('prefer-t-throws', rule, {
17
`${header}test(async t => { const error = await t.throwsAsync(promise); t.is(error, 'error'); });`,
18
`${header}test(t => { const error = t.throws(fn()); t.is(error, 'error'); });`,
19
`${header}test(async t => { try { t.fail(); unicorn(); } catch (error) { t.is(error, 'error'); } });`,
20
- `${header}test(async t => { try { unicorn(); return; t.fail(); } catch (error) { t.is(error, 'error'); } });`,
21
`${header}test(async t => { try { await promise; } catch (error) { t.is(error, 'error'); } });`,
22
],
23
invalid: [
0 commit comments