Skip to content

Commit 63468b1

Browse files
test: add missing calendar field to WrappedStats mocks in wrapped test files
1 parent 56b62f9 commit 63468b1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

app/api/wrapped/tests/statsCalculation.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ describe('GET /api/wrapped stats calculation', () => {
4646
vi.clearAllMocks();
4747

4848
const wrappedStats: WrappedStats = {
49+
calendar: statsCalendar,
4950
...calculateWrappedStats(statsCalendar),
5051
topLanguage: 'TypeScript',
5152
};

app/api/wrapped/yearBoundary.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const mockCalendar: ContributionCalendar = {
2424
};
2525

2626
const mockWrappedStats: WrappedStats = {
27+
calendar: mockCalendar,
2728
totalContributions: 1420,
2829
mostActiveDate: '2023-11-20',
2930
highestDailyCount: 42,

0 commit comments

Comments
 (0)