Permalink
Browse files

fix assertEqualCollection test method

  • Loading branch information...
1 parent 1d5daef commit dea8af9e32283fa1b9fa93133b0048ebb98fd892 @shalecraig shalecraig committed with mislav Oct 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/zepto.html
View
2 test/zepto.html
@@ -287,7 +287,7 @@
if (typeof expected.get == 'function') expected = expected.get()
if (typeof actual.get == 'function') actual = actual.get()
- if (passed) for (var i=0; i<expected.length; i++) passed = expected[i] == actual[i]
+ if (passed) for (var i=0; i<expected.length; i++) passed &= expected[i] == actual[i]
this._assertExpression(passed, message || 'Failed assertion.',
'Expected %o, got %o.', expected, actual)

0 comments on commit dea8af9

Please sign in to comment.