Commit 9e211ef
test: verify first-registered-wins behavior on duplicate routes
The router changed from accumulating handlers (T[]) to storing a single
handler (T | null) with first-registration priority. Add tests to
document this behavior: duplicate registrations for the same method +
pattern preserve the first handler, while different methods on the same
pattern work independently.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f38d6eb commit 9e211ef
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
0 commit comments