diff --git a/test/api/traversing.js b/test/api/traversing.js index e10bbba26c..424ca5d436 100644 --- a/test/api/traversing.js +++ b/test/api/traversing.js @@ -703,9 +703,10 @@ describe('$(...)', function () { var args = []; var thisVals = []; - $fruits.each(function () { + $fruits.map(function () { args.push(Array.prototype.slice.call(arguments)); thisVals.push(this); + return; }); expect(args).toStrictEqual([