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

Function _test

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

Source from the content-addressed store, hash-verified

79
80 it("doesn't enforce argument and context to be of the same type", () => {
81 function _test<DateType extends Date, ResultDate extends Date = DateType>(
82 arg: DateArg<DateType>,
83 options?: ContextOptions<ResultDate>,
84 ) {
85 getWeekYear(arg, { in: options?.in });
86 }
87 });
88 });
89});

Callers

nothing calls this directly

Calls 1

getWeekYearFunction · 0.90

Tested by

no test coverage detected