Open dagda1 opened 7 years ago
would it be possible to get some advice with this?
Routers are mutable and it looks like adminRoutes
is being shared between test cases. I suspect this is related to a bug about the mutability of routers #244. The only thing I can suggest is making your adminRoutes module a factory and returning a new router from that factory for each use-case.
I have this test:
And I have this test:
If I comment out either test 1 or test 2 then the uncommented test will pass.
If I have them both uncommented then then the test that runs second will give 404s for the request to any routes defined in the
adminRoutes
routes that I have created.What am I doing wrong? Is there some cleanup code that I should be using?