Closed aseemk closed 11 years ago
The helper expect.eql() function, like typical assertion methods, takes actual then expected:
expect.eql()
actual
expected
https://github.com/LearnBoost/expect.js/blob/master/expect.js#L850
But the Assertion.prototype.eql wrapper has been incorrectly passing this.obj (the object being tested) as the expected, and vice versa passing obj (the object used for comparison) as the actual. This fixes that.
Assertion.prototype.eql
this.obj
obj
The helper
expect.eql()
function, like typical assertion methods, takesactual
thenexpected
:https://github.com/LearnBoost/expect.js/blob/master/expect.js#L850
But the
Assertion.prototype.eql
wrapper has been incorrectly passingthis.obj
(the object being tested) as theexpected
, and vice versa passingobj
(the object used for comparison) as theactual
. This fixes that.