UNPKG

zurvan

Version:

A library for simulating time in Node.js

24 lines (23 loc) 446 B
module.exports.setTestTimers = function(calls) { setTimeout(function() { calls.push(1); }, 100); setInterval(function() { calls.push(2); }, 100); setTimeout(function() { calls.push(3); }, 100); setTimeout(function() { calls.push(4); }, 100); setTimeout(function() { calls.push(6); }, 200); setTimeout(function() { calls.push(7); }, 300); setInterval(function() { calls.push(5); }, 100); };