Commit 3263901
authored
test: add svg constants timezone boundary coverage (JhaSourav07#3119)
## Description
Fixes JhaSourav07#2890
Added `lib/svg/constants.timezone-boundaries.test.ts` to provide
timezone normalization and calendar boundary alignment test coverage for
SVG constants.
### Coverage Added
* Verifies SVG dimensions remain stable across timezone offsets.
* Verifies contribution milestone ordering during calendar date
transitions.
* Verifies streak milestone ordering across day-boundary normalization.
* Ensures contribution milestones remain unique during timezone rollover
calculations.
* Ensures streak milestones remain unique during timezone rollover
calculations.
## Pillar
* [x] 🕐 Pillar 3 — Timezone Logic Optimization
## Visual Preview
N/A (test-only change)
## Checklist before requesting a review:
* [x] I have read the `CONTRIBUTING.md` file.
* [x] I have tested these changes locally
(`localhost:3000/api/streak?user=YOUR_USERNAME`).
* [x] 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.
* [x] I have started the repo.
* [x] I have made sure that I have only one commit to merge in this PR.
* [ ] The SVG output matches the CommitPulse "premium quality" aesthetic
standard (not applicable for a test-only change).
* [ ] (Recommended) I joined the CommitPulse Discord community for
contributor discussions, mentorship, and faster PR support.1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments