We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ede310 commit ed909d9Copy full SHA for ed909d9
1 file changed
app/api/streak/route.test.ts
@@ -461,6 +461,11 @@ describe('GET /api/streak', () => {
461
expect(body.details.fieldErrors.year[0]).toContain('GitHub was founded in 2008');
462
});
463
464
+ it('returns 200 for unknown ?date= parameter (not part of schema)', async () => {
465
+ const response = await GET(makeRequest({ user: 'octocat', date: '2026-15-40' }));
466
+ expect(response.status).toBe(200);
467
+ });
468
+
469
it('returns 400 for malformed numeric year', async () => {
470
const response = await GET(makeRequest({ user: 'octocat', year: '100000' }));
471
const body = await response.json();
0 commit comments