Commit 2db3005
authored
test: add invalid bg hex validation coverage (JhaSourav07#3281)
## Description
Adds validation coverage for invalid `bg` hex color input.
Fixes JhaSourav07#3239
## Pillar
- [ ] π¨ Pillar 1 β New Theme Design
- [ ] π Pillar 2 β Geometric SVG Improvement
- [ ] π Pillar 3 β Timezone Logic Optimization
- [x] π Other (Bug fix, refactoring, docs)
## Visual Preview
N/A β test-only change, no visual output changes.
## Checklist before requesting a review:
- [x] I have read the `CONTRIBUTING.md` file.
- [x] I have tested these changes locally (`npm run test --
app/api/streak/route.test.ts`).
- [ ] I have run `npm run format` and `npm run lint` locally and
resolved all errors (CI will fail otherwise).
- [x] My commits follow the Conventional Commits format (e.g.,
`feat(themes): ...`, `fix(calculate): ...`).
- [ ] I have updated `README.md` if I added a new theme or URL
parameter.
- [ ] I have starred the repo.
- [x] I have made sure that I have only one commit to merge in this PR.
- [x] The SVG output matches the CommitPulse "premium quality" aesthetic
standard (no raw elements, smooth animations, correct fonts).
- [ ] (Recommended) I joined the CommitPulse Discord community for
contributor discussions, mentorship, and faster PR support.1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
943 | 943 | | |
944 | 944 | | |
945 | 945 | | |
| 946 | + | |
| 947 | + | |
946 | 948 | | |
| 949 | + | |
| 950 | + | |
947 | 951 | | |
948 | 952 | | |
949 | 953 | | |
| |||
0 commit comments