mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Add a mix of arguments to _.throttle tests.
This commit is contained in:
10
test/test.js
10
test/test.js
@@ -6973,8 +6973,8 @@
|
|||||||
return value;
|
return value;
|
||||||
}, 32, {});
|
}, 32, {});
|
||||||
|
|
||||||
_.times(2, function() {
|
_.times(2, function(index) {
|
||||||
equal(throttled('x'), 'x');
|
equal(throttled(index ? 'y': 'x'), 'x');
|
||||||
});
|
});
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
@@ -7020,9 +7020,9 @@
|
|||||||
return value;
|
return value;
|
||||||
}, 32, { 'trailing': false });
|
}, 32, { 'trailing': false });
|
||||||
|
|
||||||
_.times(2, function() {
|
_.times(2, function(index) {
|
||||||
equal(withTrailing('x'), 'x');
|
equal(withTrailing(index ? 'y' : 'x'), 'x');
|
||||||
equal(withoutTrailing('x'), 'x');
|
equal(withoutTrailing(index ? 'y' : 'x'), 'x');
|
||||||
});
|
});
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user