From e9c8137fd83c4e7326a3d28dcb50c87a070f16a9 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 5 Nov 2013 21:14:47 -0800 Subject: [PATCH] Add a mix of arguments to `_.throttle` tests. --- test/test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test.js b/test/test.js index bc39804e1..4712ce454 100644 --- a/test/test.js +++ b/test/test.js @@ -6973,8 +6973,8 @@ return value; }, 32, {}); - _.times(2, function() { - equal(throttled('x'), 'x'); + _.times(2, function(index) { + equal(throttled(index ? 'y': 'x'), 'x'); }); setTimeout(function() { @@ -7020,9 +7020,9 @@ return value; }, 32, { 'trailing': false }); - _.times(2, function() { - equal(withTrailing('x'), 'x'); - equal(withoutTrailing('x'), 'x'); + _.times(2, function(index) { + equal(withTrailing(index ? 'y' : 'x'), 'x'); + equal(withoutTrailing(index ? 'y' : 'x'), 'x'); }); setTimeout(function() {