MCPcopy Create free account
hub / github.com/denoland/std / fakeTimeNow

Function fakeTimeNow

testing/time.ts:73–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73function fakeTimeNow() {
74 return time?.now ?? _internals.Date.now();
75}
76
77const FakeDate = new Proxy(Date, {
78 construct(_target, args) {

Callers 1

applyFunction · 0.85

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected