Skip to content

Commit

Permalink
Docs: Mark the second parameter of assert.rejects() as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkni authored and Krinkle committed Feb 4, 2018
1 parent 4c68214 commit 8fcb373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/assert/rejects.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ categories:
- assert
---

## `rejects( promise, expectedMatcher [, message ] )`
## `rejects( promise[, expectedMatcher][, message ] )`

Test if the provided promise rejects, and optionally compare the rejection value.

Expand Down

0 comments on commit 8fcb373

Please sign in to comment.