Permalink
Browse files

remove es5isms from the test

  • Loading branch information...
1 parent c6c36ab commit 2c677bad41956be774d29e485cf160aa9a636ceb @substack committed Dec 28, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/search.js
View
@@ -14,5 +14,10 @@ test(function (t) {
'X node.js Y',
'4 boop w'
];
- t.same(xs.filter(filter), [ '2 node.js 5' ]);
+
+ var res = [];
+ for (var i = 0; i < xs.length; i++) {
+ if (filter(xs[i])) res.push(xs[i]);
+ }
+ t.same(res, [ '2 node.js 5' ]);
});

0 comments on commit 2c677ba

Please sign in to comment.