Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: lolex
node v10.24.1
endpoint
share
tweet
const lolex = require("lolex") const clock = lolex.createClock(); clock.setTimeout(() => {console.log('first')}, 50); clock.setTimeout(() => {console.log('second')}, 50); clock.setTimeout(() => {console.log('third')}, 100); clock.next(); // clock.tick(0);
Created from: https://npm.runkit.com/lolex
Loading…
Clone and edit this document