MCPcopy
hub / github.com/date-fns/date-fns / _test

Function _test

pkgs/core/src/isToday/test.ts:37–42  ·  view source on GitHub ↗
(
        arg: DateArg<DateType>,
        options?: ContextOptions<ResultDate>,
      )

Source from the content-addressed store, hash-verified

35
36 it("doesn't enforce argument and context to be of the same type", () => {
37 function _test<DateType extends Date, ResultDate extends Date = DateType>(
38 arg: DateArg<DateType>,
39 options?: ContextOptions<ResultDate>,
40 ) {
41 isToday(arg, { in: options?.in });
42 }
43 });
44 });
45});

Callers

nothing calls this directly

Calls 1

isTodayFunction · 0.90

Tested by

no test coverage detected