Commit 80a8c70
test(res): add test for HEAD request redirect
Add test covering the HEAD method branch in redirect.ts which
sends an empty body for HEAD requests.
Improves redirect.ts coverage:
- Statements: 94% -> 100%
- Branches: 75% -> 100%
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 34c5dcc commit 80a8c70
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
141 | 156 | | |
142 | 157 | | |
143 | 158 | | |
| |||
0 commit comments