MCPcopy Create free account
hub / github.com/effect-app/libs / assertSomeIso

Function assertSomeIso

repos/effect/packages/effect/test/DateTime.test.ts:7–10  ·  view source on GitHub ↗
(value: Option.Option<DateTime.DateTime>, expected: string)

Source from the content-addressed store, hash-verified

5
6const setTo2024NZ = TestClock.setTime(new Date("2023-12-31T11:00:00.000Z").getTime())
7const assertSomeIso = (value: Option.Option<DateTime.DateTime>, expected: string) => {
8 const iso = Option.map(value, (value) => DateTime.formatIso(DateTime.toUtc(value)))
9 assertSome(iso, expected)
10}
11const isDeno = "Deno" in globalThis
12
13describe("DateTime", () => {

Callers 1

DateTime.test.tsFile · 0.85

Calls 2

assertSomeFunction · 0.90
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…