Skip to content

Commit 57f5007

Browse files
clayzermk1sindresorhus
authored andcommitted
Fix typo in t.notThrows example (#1486)
1 parent d8c21a6 commit 57f5007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ Assert that `function` does not throw an error or that `promise` does not reject
979979
Like the `.throws()` assertion, when testing a promise you must wait for the assertion to complete:
980980

981981
```js
982-
test('rejects', async t => {
982+
test('resolves', async t => {
983983
await t.notThrows(promise);
984984
});
985985
```

0 commit comments

Comments
 (0)