mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Ensure cancel resets lastCallTime and lastInvokeTime.
This commit is contained in:
@@ -21956,10 +21956,12 @@
|
||||
|
||||
assert.strictEqual(funced(), 1);
|
||||
funced.cancel();
|
||||
|
||||
assert.strictEqual(funced(), 2);
|
||||
funced();
|
||||
|
||||
setTimeout(function() {
|
||||
assert.strictEqual(callCount, 2);
|
||||
assert.strictEqual(callCount, 3);
|
||||
done();
|
||||
}, 64);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user