diff --git a/src/__tests__/convertor.test.ts b/src/__tests__/convertor.test.ts index 5b68ef1..ff36984 100644 --- a/src/__tests__/convertor.test.ts +++ b/src/__tests__/convertor.test.ts @@ -148,5 +148,8 @@ describe("calendar/convertor", () => { Object.entries(data).forEach(([key, value]) => { expect(normalizeDateStr(key)).toStrictEqual(value); }); + + expect(normalizeDateStr(new Date(2023, 11, 1))).toStrictEqual([2023, 12, 1, 0, 0, 0]); + expect(normalizeDateStr(new Date(2023, 11, 1, 12))).toStrictEqual([2023, 12, 1, 12, 0, 0]); }); });