Commit b5cc44c
authored
test: cover auto theme in streak route (JhaSourav07#602)
## Description
- add one focused route-level test for the ?theme=auto path in
�pp/api/streak/route.test.ts
- assert the response stays 200
- assert the generated SVG includes both prefers-color-scheme: dark and
the --cp-bg CSS variable
- keep the change test-only and aligned with issue JhaSourav07#396
## Pillar
- Testing
## Checklist
- [x] Linked to the assigned issue
- [x] Kept the change scoped to the requested file
- [x] Added the exact assertions requested by the issue
- [x] Ran git diff --check
- [ ] Full local test suite not run in this workspace because
dependencies are not installed here and the machine is nearly out of
disk space
Closes JhaSourav07#3961 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
310 | 319 | | |
311 | 320 | | |
312 | 321 | | |
| |||
0 commit comments