Skip to content

Commit 6755db3

Browse files
authored
Update prefer-t-throws.js
1 parent 739905d commit 6755db3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/prefer-t-throws.js

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ ruleTester.run('prefer-t-throws', rule, {
1717
`${header}test(async t => { const error = await t.throwsAsync(promise); t.is(error, 'error'); });`,
1818
`${header}test(t => { const error = t.throws(fn()); t.is(error, 'error'); });`,
1919
`${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'); } });`,
2120
`${header}test(async t => { try { await promise; } catch (error) { t.is(error, 'error'); } });`,
2221
],
2322
invalid: [

0 commit comments

Comments
 (0)