Skip to content

Commit

Permalink
Fix typo in t.notThrows example (#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
clayzermk1 authored and sindresorhus committed Aug 10, 2017
1 parent d8c21a6 commit 57f5007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ Assert that `function` does not throw an error or that `promise` does not reject
Like the `.throws()` assertion, when testing a promise you must wait for the assertion to complete:

```js
test('rejects', async t => {
test('resolves', async t => {
await t.notThrows(promise);
});
```
Expand Down

0 comments on commit 57f5007

Please sign in to comment.