MCPcopy Index your code
hub / github.com/bombshell-dev/clack / d

Function d

packages/core/test/prompts/date.test.ts:8–11  ·  view source on GitHub ↗
(iso: string)

Source from the content-addressed store, hash-verified

6import { MockWritable } from '../mock-writable.js';
7
8const d = (iso: string) => {
9 const [y, m, day] = iso.slice(0, 10).split('-').map(Number);
10 return new Date(Date.UTC(y, m - 1, day));
11};
12
13describe('DatePrompt', () => {
14 let input: MockReadable;

Callers 1

date.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected