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
As i apply middleware to a global container in a unit testing scenario i want to remove the middleware after each test run so i can reset the container properly
Expected Behavior
It should work where i can pass the middleware function reference into a removeMiddleware() method or even a key if storing the middleware references in a Map
Current Behavior
No method seems to exist to remove middleware aside from creating a new container.
Possible Solution
Add a new method to removeMiddleware
or remove middleWare as an option on an unbindAll(includeMiddleware: boolean)
The text was updated successfully, but these errors were encountered:
As i apply middleware to a global container in a unit testing scenario i want to remove the middleware after each test run so i can reset the container properly
Expected Behavior
It should work where i can pass the middleware function reference into a removeMiddleware() method or even a key if storing the middleware references in a Map
Current Behavior
No method seems to exist to remove middleware aside from creating a new container.
Possible Solution
Add a new method to removeMiddleware
or remove middleWare as an option on an unbindAll(includeMiddleware: boolean)
The text was updated successfully, but these errors were encountered: