We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e15a46a commit e2a3c87Copy full SHA for e2a3c87
1 file changed
app/api/streak/route.test.ts
@@ -297,6 +297,15 @@ describe('GET /api/streak', () => {
297
expect(response.status).toBe(200);
298
});
299
300
+ it('returns auto-theme SVG markup with dark-mode CSS variables when theme=auto', async () => {
301
+ const response = await GET(makeRequest({ user: 'octocat', theme: 'auto' }));
302
+ const body = await response.text();
303
+
304
+ expect(response.status).toBe(200);
305
+ expect(body).toContain('prefers-color-scheme: dark');
306
+ expect(body).toContain('--cp-bg');
307
+ });
308
309
it('falls back to the dark theme without crashing when an unknown theme is given', async () => {
310
const response = await GET(makeRequest({ user: 'octocat', theme: 'does-not-exist' }));
311
const body = await response.text();
0 commit comments