Skip to content

Commit

Permalink
Fix: fulfilled() / willBe() does not describe mismatches if the s…
Browse files Browse the repository at this point in the history
…ubmatcher is also a promising matcher
  • Loading branch information
rluba committed Jan 20, 2015
1 parent b13436e commit 8683285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matchers/IsFulfilled.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ function IsFulfilled(valueOrMatcher) {
.append('was not fulfilled (')
.appendValue(qPromise.inspect())
.append(')');
deferred.resolve();
}
else {
description
.append('fulfillment value: ');
valueMatcher.describeMismatch(qPromise.inspect().value, description);
deferred.resolve(valueMatcher.describeMismatch(qPromise.inspect().value, description));
}
deferred.resolve();
});
return deferred.promise;
}
Expand Down

0 comments on commit 8683285

Please sign in to comment.