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

Function _test

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isYesterdayFunction · 0.90

Tested by

no test coverage detected