Skip to content

Commit

Permalink
Use a better rejection reason to diagnose kriskowal#184.
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Jan 27, 2013
1 parent 6d3e1dc commit fccc4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/q-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("Q function", function () {

it("should be the identity when given promise", function () {
var f = Q.fulfill(5);
var r = Q.reject(10);
var r = Q.reject(new Error("aaargh"));
var p = Q.promise();

expect(Q(f)).toBe(f);
Expand Down

0 comments on commit fccc4f2

Please sign in to comment.