Commit 5494de2
authored
test(time): verify behavior for invalid timezone identifiers (JhaSourav07#3085)
## Description
Fixes JhaSourav07#2143
Added test coverage for invalid timezone identifiers in
`getSecondsUntilMidnightInTimezone`.
## Pillar
- [x] Pillar 3 — Timezone Logic Optimization
## Checklist
- [x] I have read the CONTRIBUTING.md file.
- [x] I have run npm run format.
- [x] I have run npm run lint.
- [x] I have run npm run typecheck.
- [x] I have run npm run test.
- [x] I have only one commit in this PR.
## Visual Preview
N/A (test-only change)
## Changes Made
- Added test for invalid timezone identifiers
- Verified RangeError is thrown for unsupported timezone values
- Documented current formatter behavior without modifying implementation
## Result
- Improves test coverage for timezone validation edge cases
- Prevents regressions in timezone handling behavior
- Existing tests continue to pass1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
353 | 359 | | |
0 commit comments