Skip to content

Commit 9793624

Browse files
DESIREDDY MOHITH REDDYDESIREDDY MOHITH REDDY
authored andcommitted
test: align streak boundary tests with timezone-aware cache max-age
1 parent d508d29 commit 9793624

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/api/streak/route.timezone-boundaries.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe('ApiStreakRoute Timezone Normalization & Calendar Boundary Alignment',
8989
expect(getSecondsUntilMidnightInTimezone).toHaveBeenCalled();
9090
expect(getSecondsUntilUTCMidnight).not.toHaveBeenCalled();
9191

92-
expect(response.headers.get('Cache-Control')).toContain('s-maxage=1');
92+
expect(response.headers.get('Cache-Control')).toContain('s-maxage=7200');
9393
});
9494

9595
it('returns 400 for an invalid timezone and skips GitHub fetching', async () => {
@@ -123,7 +123,7 @@ describe('ApiStreakRoute Timezone Normalization & Calendar Boundary Alignment',
123123

124124
expect(response.status).toBe(200);
125125

126-
expect(response.headers.get('Cache-Control')).toContain('s-maxage=1');
126+
expect(response.headers.get('Cache-Control')).toContain('s-maxage=1234');
127127

128128
const body = await response.json();
129129

0 commit comments

Comments
 (0)