From df9ded3282428db6caa9f8693dd016350ae10486 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 16 May 2016 18:33:36 -0700 Subject: [PATCH] Fix `_.throttle` test for system time of `0`. --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index af15f8a6d..c45f330b8 100644 --- a/test/test.js +++ b/test/test.js @@ -22640,12 +22640,12 @@ var lodash = _.runInContext({ 'Date': { 'now': function() { - return ++dateCount == 1 ? 0 : +new Date; + return ++dateCount < 4 ? 0 : +new Date; } } }); - var throttled = _.throttle(function(value) { + var throttled = lodash.throttle(function(value) { callCount++; return value; }, 32);