Skip to content

Commit

Permalink
improve output of assertEqualList
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Dec 24, 2012
1 parent 7c0b96e commit dd97a5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ <h1>Zepto Ajax unit tests</h1>
}

Evidence.Assertions.assertEqualList = function(expected, actual, message) {
var expectedList = toArray(expected).join(' '),
actualList = toArray(actual).join(' ')
var expectedList = toArray(expected),
actualList = toArray(actual)

this._assertExpression(
expectedList == actualList,
message || 'Failed assertion.',
expectedList.join(' ') == actualList.join(' '),
message || "Lists don't match.",
'Expected %o, got %o.', expectedList, actualList
)
}
Expand Down

0 comments on commit dd97a5c

Please sign in to comment.