Skip to content

Commit

Permalink
Fix README examples for isRejected
Browse files Browse the repository at this point in the history
Closes #246.
  • Loading branch information
James-Firth authored and domenic committed Aug 19, 2018
1 parent c3772a8 commit 39bfd34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ return assert.isFulfilled(promise, "optional message");
return assert.becomes(promise, "foo", "optional message");
return assert.doesNotBecome(promise, "foo", "optional message");

return assert.isRejected(promise, "optional message");
return assert.isRejected(promise, Error, "optional message");
return assert.isRejected(promise, /error message matcher/, "optional message");
return assert.isRejected(promise, /error message regex matcher/, "optional message");
return assert.isRejected(promise, "substring to search error message for", "optional message");
```

### Progress Callbacks
Expand Down

0 comments on commit 39bfd34

Please sign in to comment.