Skip to content

Commit

Permalink
Add a case that replicates issue #64
Browse files Browse the repository at this point in the history
  • Loading branch information
lddubeau authored and domenic committed Sep 27, 2016
1 parent deb505c commit 7662aca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/should-promise-specific.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ describe "Promise-specific extensions:", =>
op: => promise.should.be.rejectedWith(TypeError)
message: "to be rejected with 'TypeError' but it was rejected with [RangeError]"

# Case for issue #64.
describe ".rejectedWith(Array)", =>
shouldFail
op: => promise.should.be.rejectedWith(Array)
message: "to be rejected with 'Array' but it was rejected with [RangeError]"

describe ".not.rejectedWith(TypeError)", =>
shouldPass => promise.should.not.be.rejectedWith(TypeError)

Expand Down

0 comments on commit 7662aca

Please sign in to comment.