Commit 7eb1675
authored
test(api validation): check layout query validation boundaries (JhaSourav07#1776)
## Description
Fixes JhaSourav07#1464
Added validation test coverage for the `?layout=` query parameter using
the unsupported value `unsupported_layout`.
The test verifies that invalid layout input is rejected with a `400 Bad
Request` response and ensures query validation boundaries are enforced
correctly.
## Pillar
* [ ] 🎨 Pillar 1 — New Theme Design
* [ ] 📐 Pillar 2 — Geometric SVG Improvement
* [ ] 🕐 Pillar 3 — Timezone Logic Optimization
* [x] 🛠️ Other (Bug fix, refactoring, docs)
## Checklist before requesting a review:
* [x] I have read the `CONTRIBUTING.md` file.
* [x] I have tested these changes locally.
* [x] I have run `npm run format` and `npm run lint` locally.
* [x] My commits follow the Conventional Commits format.
* [x] This PR only adds the required validation test for Issue JhaSourav07#1464.
* [x] All relevant test suites pass successfully.1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
180 | 188 | | |
181 | 189 | | |
182 | 190 | | |
| |||
475 | 483 | | |
476 | 484 | | |
477 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
478 | 491 | | |
479 | 492 | | |
480 | 493 | | |
| |||
0 commit comments