Commit dd311c4
committed
test(xref): add tests for array query param normalization
Express parses repeated ?q= query parameters as arrays at runtime,
which would crash searchTerms() since arrays lack toLowerCase().
Add tests verifying array params are normalized to the first element.1 parent 06120d7 commit dd311c4
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
155 | 169 | | |
0 commit comments