We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4dcf09 commit bf00d65Copy full SHA for bf00d65
1 file changed
app/api/streak/route.test.ts
@@ -1324,6 +1324,14 @@ describe('GET /api/streak', () => {
1324
});
1325
1326
1327
+ it('falls back to commits mode when ?mode=unknown is given', async () => {
1328
+ const response = await GET(makeRequest({ user: 'octocat', mode: 'invalid' }));
1329
+
1330
+ expect(response.status).toBe(200);
1331
+ const body = await response.text();
1332
+ expect(body).toContain('<svg');
1333
+ });
1334
1335
describe('org parameter validation', () => {
1336
it('returns 400 when org parameter is a User instead of an Organization', async () => {
1337
vi.mocked(getOrgDashboardData).mockRejectedValueOnce(
0 commit comments