MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / iso

Function iso

test/maintain-stats.test.ts:58–58  ·  view source on GitHub ↗
(daysAgo: number)

Source from the content-addressed store, hash-verified

56 it('buckets opened runs into this-week vs prior-week from timestamps', () => {
57 const now = Date.parse('2026-07-01T00:00:00Z');
58 const iso = (daysAgo: number) => new Date(now - daysAgo * 86_400_000).toISOString();
59 const runs = [
60 R('unused-imports', 'opened', 5, '', iso(1)), // this week
61 R('unused-imports', 'opened', 3, '', iso(3)), // this week

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected