(funcs, wait)
| 10 | var reNumbers = /([\d\.]+)/gm; |
| 11 | |
| 12 | function promiseSerial(funcs, wait) { |
| 13 | return funcs.reduce(function(promise, func) { |
| 14 | return promise.then(function(result) { |
| 15 | return func().then(Array.prototype.concat.bind(result)).then(delay(wait)); |
| 16 | }); |
| 17 | }, Promise.resolve([])); |
| 18 | } |
| 19 | |
| 20 | function clockTick(currentNow, milliseconds) { |
| 21 | Date.now = function() { |
no test coverage detected
searching dependent graphs…