MCPcopy Index your code
hub / github.com/deployd/deployd / createClock

Function createClock

test-app/public/sinon.js:3728–3736  ·  view source on GitHub ↗
(config, globalCtx)

Source from the content-addressed store, hash-verified

3726 var llx = require("lolex");
3727
3728 function createClock(config, globalCtx) {
3729 var llxCtx = llx;
3730 if (globalCtx !== null && typeof globalCtx === "object") {
3731 llxCtx = llx.withGlobal(globalCtx);
3732 }
3733 var clock = llxCtx.install(config);
3734 clock.restore = clock.uninstall;
3735 return clock;
3736 }
3737
3738 /**
3739 * @param {number|Date|Object} dateOrConfig The unix epoch value to install with (default 0)

Callers 2

sinon.jsFile · 0.85
installFunction · 0.85

Calls 15

getEpochFunction · 0.85
createDateFunction · 0.85
addTimerFunction · 0.85
clearTimerFunction · 0.85
enqueueJobFunction · 0.85
parseIntFunction · 0.85
getTimeToNextFrameFunction · 0.85
runJobsFunction · 0.85
parseTimeFunction · 0.85
nanoRemainderFunction · 0.85
firstTimerInRangeFunction · 0.85
callTimerFunction · 0.85

Tested by

no test coverage detected