We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed909d9 commit 11cd372Copy full SHA for 11cd372
1 file changed
app/api/streak/route.test.ts
@@ -163,6 +163,14 @@ describe('GET /api/streak', () => {
163
expect(fetchGitHubContributions).not.toHaveBeenCalled();
164
});
165
166
+ it('returns 200 for unsupported ?layout query parameter values (route ignores it)', async () => {
167
+ const response = await GET(
168
+ new Request('http://localhost:3000/api/streak?user=octocat&layout=unsupported_layout')
169
+ );
170
+
171
+ expect(response.status).toBe(200);
172
+ });
173
174
it('should return 200 OK and valid SVG when the optional repo query parameter is provided', async () => {
175
// 1. Make request with both parameters present
176
const response = await GET(makeRequest({ user: 'octocat', repo: 'commitpulse' }));
0 commit comments