We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49b8185 commit 2d81996Copy full SHA for 2d81996
docs/rules/prefer-t-throws.md
@@ -54,28 +54,3 @@ test('some test', async t => {
54
await t.throwsAsync(asyncThrowingFunction(), {message: 'Unicorn overload'});
55
});
56
```
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
72
73
74
75
- return;
76
77
78
79
80
81
0 commit comments