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

Function _test

pkgs/core/src/isThisHour/test.ts:45–50  ·  view source on GitHub ↗
(
        arg: DateType | number | string,
        options?: ContextOptions<ResultDate>,
      )

Source from the content-addressed store, hash-verified

43
44 it("doesn't enforce argument and context to be of the same type", () => {
45 function _test<DateType extends Date, ResultDate extends Date = DateType>(
46 arg: DateType | number | string,
47 options?: ContextOptions<ResultDate>,
48 ) {
49 isThisHour(arg, { in: options?.in });
50 }
51 });
52 });
53});

Callers

nothing calls this directly

Calls 1

isThisHourFunction · 0.90

Tested by

no test coverage detected