diff --git a/app/routes/dashboard.test.tsx b/app/routes/dashboard.test.tsx index 6c462702..2a97e0ae 100644 --- a/app/routes/dashboard.test.tsx +++ b/app/routes/dashboard.test.tsx @@ -104,6 +104,7 @@ describe("Dashboard route", () => { })) })); + vi.setSystemTime(new Date("2024-01-18T09:33:02").getTime()); const response = await loader({ context: { @@ -133,14 +134,13 @@ describe("Dashboard route", () => { countByDevice: [['Desktop', 3]], viewsGroupedByInterval: [ ['2024-01-11 00:00:00', 4], - ['2024-01-27 00:00:00', 0], - ['2024-01-28 00:00:00', 0], - ['2024-01-29 00:00:00', 0], - ['2024-01-30 00:00:00', 0], - ['2024-01-31 00:00:00', 0], - ['2024-02-01 00:00:00', 0], - ['2024-02-02 00:00:00', 0], - ['2024-02-03 00:00:00', 0] + ['2024-01-12 00:00:00', 0], + ['2024-01-13 00:00:00', 0], + ['2024-01-14 00:00:00', 0], + ['2024-01-15 00:00:00', 0], + ['2024-01-16 00:00:00', 0], + ['2024-01-17 00:00:00', 0], + ['2024-01-18 00:00:00', 0], ], intervalType: 'DAY' });