Travis build: 1653 [cron]
This commit is contained in:
@ -1,10 +1,8 @@
|
||||
const debounce = (fn, wait = 0) => {
|
||||
let inDebounce;
|
||||
return function() {
|
||||
const context = this,
|
||||
args = arguments;
|
||||
clearTimeout(inDebounce);
|
||||
inDebounce = setTimeout(() => fn.apply(context, args), wait);
|
||||
const debounce = (fn, ms = 0) => {
|
||||
let timeoutId;
|
||||
return function(...args) {
|
||||
clearTimeout(timeoutId);
|
||||
timeoutId = setTimeout(() => fn.apply(this, args), ms);
|
||||
};
|
||||
};
|
||||
module.exports = debounce;
|
||||
@ -1,4 +1,4 @@
|
||||
Test log for: Sun Feb 11 2018 20:20:34 GMT+0000 (UTC)
|
||||
Test log for: Mon Feb 12 2018 20:20:58 GMT+0000 (UTC)
|
||||
|
||||
> 30-seconds-of-code@0.0.1 test /home/travis/build/Chalarangelo/30-seconds-of-code
|
||||
> tape test/**/*.test.js | tap-spec
|
||||
@ -1797,14 +1797,14 @@ Test log for: Sun Feb 11 2018 20:20:34 GMT+0000 (UTC)
|
||||
|
||||
✔ zipWith is a Function
|
||||
✔ Sends a GET request
|
||||
✔ Runs the function provided
|
||||
✔ Sends a POST request
|
||||
✔ Runs the function provided
|
||||
✔ Runs promises in series
|
||||
✔ Works with multiple promises
|
||||
|
||||
|
||||
total: 901
|
||||
passing: 901
|
||||
duration: 2.4s
|
||||
duration: 2.3s
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user