You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(router): add test case for RouteNotFound handler in groups
Add TestRouterRouteNotFoundHandlerInGroup to verify that a RouteNotFound
handler registered at root or group level is correctly invoked when a
route exists but the HTTP method is not registered (issue #2485).
Test scenarios covered:
- Root-level RouteNotFound fires for group sub-path with wrong method
- Group-level RouteNotFound fires for group sub-path with wrong method
- Root-level handler fires when no group-level handler defined
- Falls back to methodNotAllowedHandler when no RouteNotFound registered
Signed-off-by: lyydsheep <2230561977@qq.com>
0 commit comments