Skip to content

Commit 4b99e82

Browse files
committed
test: update cache-control s-maxage expectations to 1 second in timezone boundary tests
1 parent f075347 commit 4b99e82

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=7200');
92+
expect(response.headers.get('Cache-Control')).toContain('s-maxage=1');
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=1234');
126+
expect(response.headers.get('Cache-Control')).toContain('s-maxage=1');
127127

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

0 commit comments

Comments
 (0)