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

Function _test

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getISOWeeksInYearFunction · 0.90

Tested by

no test coverage detected