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

Function _test

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

Source from the content-addressed store, hash-verified

50
51 it("doesn't enforce argument and context to be of the same type", () => {
52 function _test<DateType extends Date, ResultDate extends Date = DateType>(
53 arg: DateArg<DateType>,
54 options?: ContextOptions<ResultDate>,
55 ) {
56 isSunday(arg, { in: options?.in });
57 }
58 });
59 });
60});

Callers

nothing calls this directly

Calls 1

isSundayFunction · 0.90

Tested by

no test coverage detected