Navigation Menu

Skip to content

Commit

Permalink
Fix unexpectedly switched "expected" and "actual"
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 15, 2012
1 parent 51181c4 commit 557f3e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test-utils.js
Expand Up @@ -222,12 +222,12 @@ function sortAndStringify(object) {
}

require('chai').Assertion.prototype.eql = function(obj) {
var expected = chai_utils.flag(this, 'object');
var actual = chai_utils.flag(this, 'object');
this.assert(
chai_utils.eql(obj, expected)
chai_utils.eql(obj, actual)
, 'expected #{this} to deeply equal #{exp}'
, 'expected #{this} to not deeply equal #{exp}'
, sortAndStringify(expected)
, sortAndStringify(obj)
, sortAndStringify(actual)
);
};

0 comments on commit 557f3e8

Please sign in to comment.