mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-05 06:54:36 +08:00
test: fix tests being broken in 2025
This commit is contained in:
parent
a2f6c1f832
commit
c73c417519
1 changed files with 5 additions and 0 deletions
|
|
@ -786,6 +786,9 @@ describe("test-activity-calendar.ts", () => {
|
|||
});
|
||||
describe("getFullYearCalendar", () => {
|
||||
it("gets calendar", () => {
|
||||
const date = new Date(2024, 8, 1);
|
||||
vi.setSystemTime(date);
|
||||
|
||||
//GIVEN
|
||||
const lastDate = getDate("2024-01-02");
|
||||
const calendar = new ModifiableTestActivityCalendar(
|
||||
|
|
@ -816,6 +819,8 @@ describe("test-activity-calendar.ts", () => {
|
|||
});
|
||||
describe("getTotalTests", () => {
|
||||
it("gets amount of tests", () => {
|
||||
const date = new Date(2024, 8, 1);
|
||||
vi.setSystemTime(date);
|
||||
//GIVEN
|
||||
const lastDate = getDate("2024-01-02");
|
||||
const calendar = new ModifiableTestActivityCalendar(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue