Skip to content

Commit

Permalink
Notes on messages. #22
Browse files Browse the repository at this point in the history
  • Loading branch information
logicalparadox committed Mar 2, 2012
1 parent 010810e commit ea4a33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assertion.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Assertion.prototype.assert = function (expr, msg, negateMsg, expected, actual) {

if (!ok) {
throw new AssertionError({
message: this.msg ? this.msg + ': ' + msg : msg
message: this.msg ? this.msg + ': ' + msg : msg // include custom message if available
, actual: act
, expected: exp
, stackStartFunction: (Assertion.includeStack) ? this.assert : this.ssfi
Expand Down

0 comments on commit ea4a33a

Please sign in to comment.