Commit 3267843
authored
test(LanguageChart): add empty fallback coverage (JhaSourav07#3615)
## Description
Fixes JhaSourav07#2563
Added empty/fallback state test coverage for `LanguageChart`.
## Pillar
* [ ] π¨ Pillar 1 β New Theme Design
* [ ] π Pillar 2 β Geometric SVG Improvement
* [ ] π Pillar 3 β Timezone Logic Optimization
* [x] π οΈ Other (Bug fix, refactoring, docs)
## Visual Preview
Not applicable β test-only change.
## Checklist before requesting a review:
* [x] I have read the `CONTRIBUTING.md` file.
* [x] I have tested these changes locally (`npm run test --
LanguageChart.empty-fallback.test.tsx`).
* [x] I have run `npm run lint` locally and resolved all errors.
* [x] My commits follow the Conventional Commits format.
* [ ] 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.
* [ ] (Recommended) I joined the CommitPulse Discord community for
contributor discussions, mentorship, and faster PR support.
## Tests
* Added 5 test cases for `LanguageChart` empty/missing input fallback
behavior.
* Verified fallback UI renders without crashing.
* Verified empty layout remains stable.
* Verified no unexpected runtime errors occur.
* Added `IntersectionObserver` mock for test environment stability.1 file changed
Lines changed: 46 additions & 0 deletions
Lines changed: 46 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 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments