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

Function _test

pkgs/core/src/isSameISOWeekYear/test.ts:64–69  ·  view source on GitHub ↗
(
      arg1: DateType1 | number | string,
      arg2: DateType2 | number | string,
    )

Source from the content-addressed store, hash-verified

62
63 it("allows dates to be of different types", () => {
64 function _test<DateType1 extends Date, DateType2 extends Date>(
65 arg1: DateType1 | number | string,
66 arg2: DateType2 | number | string,
67 ) {
68 isSameISOWeekYear(arg1, arg2);
69 }
70 });
71
72 it("normalizes the dates", () => {

Callers

nothing calls this directly

Calls 1

isSameISOWeekYearFunction · 0.90

Tested by

no test coverage detected