Skip to content

Commit

Permalink
Update prefer-t-throws.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesteery committed Feb 15, 2022
1 parent 739905d commit 6755db3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/prefer-t-throws.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ ruleTester.run('prefer-t-throws', rule, {
`${header}test(async t => { const error = await t.throwsAsync(promise); t.is(error, 'error'); });`,
`${header}test(t => { const error = t.throws(fn()); t.is(error, 'error'); });`,
`${header}test(async t => { try { t.fail(); unicorn(); } catch (error) { t.is(error, 'error'); } });`,
`${header}test(async t => { try { unicorn(); return; t.fail(); } catch (error) { t.is(error, 'error'); } });`,
`${header}test(async t => { try { await promise; } catch (error) { t.is(error, 'error'); } });`,
],
invalid: [
Expand Down

0 comments on commit 6755db3

Please sign in to comment.