MCPcopy Create free account
hub / github.com/bombshell-dev/clack / d

Function d

packages/prompts/test/date.test.ts:6–9  ·  view source on GitHub ↗
(iso: string)

Source from the content-addressed store, hash-verified

4import { MockReadable, MockWritable } from './test-utils.js';
5
6const d = (iso: string) => {
7 const [y, m, day] = iso.slice(0, 10).split('-').map(Number);
8 return new Date(Date.UTC(y, m - 1, day));
9};
10
11describe.each(['true', 'false'])('date (isCI = %s)', (isCI) => {
12 let originalCI: string | undefined;

Callers 1

date.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected