Skip to content

Commit

Permalink
🧹 add UT cases
Browse files Browse the repository at this point in the history
  • Loading branch information
SylarLong committed Oct 30, 2023
1 parent 3c16c73 commit 2af46e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/__tests__/convertor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
});
});

0 comments on commit 2af46e9

Please sign in to comment.