From 39bfd34988132e443d703c8547fef4e2fbfa7a21 Mon Sep 17 00:00:00 2001 From: James Firth Date: Sun, 19 Aug 2018 16:12:31 -0500 Subject: [PATCH] Fix README examples for isRejected Closes #246. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 502ee0f..293532c 100644 --- a/README.md +++ b/README.md @@ -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