From 14fb27ce77774ba08112aa8705a151f968e8781a Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 10 Aug 2016 13:13:12 -0700 Subject: [PATCH] Update `_.debounce` test to hit code branch. --- test/test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test.js b/test/test.js index f513714fa..f6e6ecb88 100644 --- a/test/test.js +++ b/test/test.js @@ -4377,18 +4377,18 @@ var debounced = _.debounce(function() { ++callCount; - }, 64, { 'maxWait': 64 }); + }, 200, { 'maxWait': 200 }); debounced(); - lodashStable.times(20, function(index) { - setTimeout(debounced, 54 + index); - }); + setTimeout(debounced, 190); + setTimeout(debounced, 200); + setTimeout(debounced, 210); setTimeout(function() { assert.strictEqual(callCount, 2); done(); - }, 160); + }, 500); }); QUnit.test('should cancel `maxDelayed` when `delayed` is invoked', function(assert) {