mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-01-30 10:27:47 +08:00
fix: test activity calendar tests failing in 2025 (@fehmer)
This commit is contained in:
parent
3a0313026a
commit
22568cb51e
1 changed files with 6 additions and 0 deletions
|
@ -787,6 +787,9 @@ describe("test-activity-calendar.ts", () => {
|
|||
describe("getFullYearCalendar", () => {
|
||||
it("gets calendar", () => {
|
||||
//GIVEN
|
||||
//set today
|
||||
vi.setSystemTime(getDate("2024-12-01"));
|
||||
|
||||
const lastDate = getDate("2024-01-02");
|
||||
const calendar = new ModifiableTestActivityCalendar(
|
||||
[1, 2, 3, 4],
|
||||
|
@ -817,6 +820,9 @@ describe("test-activity-calendar.ts", () => {
|
|||
describe("getTotalTests", () => {
|
||||
it("gets amount of tests", () => {
|
||||
//GIVEN
|
||||
//set today
|
||||
vi.setSystemTime(getDate("2024-12-01"));
|
||||
|
||||
const lastDate = getDate("2024-01-02");
|
||||
const calendar = new ModifiableTestActivityCalendar(
|
||||
[1, 2, 3, 4],
|
||||
|
|
Loading…
Reference in a new issue