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

Function _test

pkgs/core/src/isSameYear/test.ts:61–67  ·  view source on GitHub ↗
(
        arg1: DateArg<DateType>,
        arg2: DateArg<DateType>,
        options?: ContextOptions<ResultDate>,
      )

Source from the content-addressed store, hash-verified

59
60 it("doesn't enforce argument and context to be of the same type", () => {
61 function _test<DateType extends Date, ResultDate extends Date = DateType>(
62 arg1: DateArg<DateType>,
63 arg2: DateArg<DateType>,
64 options?: ContextOptions<ResultDate>,
65 ) {
66 isSameYear(arg1, arg2, { in: options?.in });
67 }
68 });
69 });
70});

Callers

nothing calls this directly

Calls 1

isSameYearFunction · 0.90

Tested by

no test coverage detected