Skip to content

Commit 2d81996

Browse files
authored
Update prefer-t-throws.md
1 parent 49b8185 commit 2d81996

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

docs/rules/prefer-t-throws.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,3 @@ test('some test', async t => {
5454
await t.throwsAsync(asyncThrowingFunction(), {message: 'Unicorn overload'});
5555
});
5656
```
57-
58-
```js
59-
const test = require('ava');
60-
61-
test('some test', async t => {
62-
try {
63-
t.fail();
64-
myFunction();
65-
} catch (error) {
66-
t.is(error.message, 'Unicorn overload');
67-
}
68-
});
69-
```
70-
71-
```js
72-
test('some test', async t => {
73-
try {
74-
myFunction();
75-
return;
76-
t.fail();
77-
} catch (error) {
78-
t.is(error.message, 'Unicorn overload');
79-
}
80-
});
81-
```

0 commit comments

Comments
 (0)