Skip to content

Commit

Permalink
test: .map test was actually calling .each (#1705) (#1711)
Browse files Browse the repository at this point in the history
The added return is to prevent linter errors due to rule `array-callback-return`
  • Loading branch information
Pustur authored Feb 2, 2021
1 parent 8fef5aa commit 456fbe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/api/traversing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 456fbe5

Please sign in to comment.