Closed iamgodot closed 2 years ago
The router does not care what you bind to a route, the target of a route can be anything. So, to test the router, you do not need a Route object, just some unique target to identify which route matched. I agree that this is not obvious from the test code, but creating a Route instance is unnecessary here.
I found the second
rule
param inself.add()
a bit confusing, so this is for better understanding of the code.