MiddlewareTestScope
The scope for a middleware under test.
Functions
Clears history and unverified.
Just like onDispatch, but for MiddlewareScope.next function.
Calls middleware under test with given action.
Runs assertions block on actions passed to the next middleware by the middleware under test.
Properties
Extensions
Returns a string that contains list of all dispatched actions. The action recently pulled form the queue is marked with '->'.
Asserts that first unverified action is equal to action.
Asserts that first unverified action is an instance of type T. Also, it applies additional assertions.
Asserts that there are only actions dispatched in given order and no more.
Asserts that all dispatched actions count is equal to count. It does not pull any action from unverified queue.
Asserts that every unverified action matches the predicate.
Asserts that there is no dispatched actions.
Asserts that there is no unverified actions left.
Asserts that first unverified action is equal to action and it is the only one dispatched action.
Asserts that first unverified action is an instance of T and it is the only one dispatched action. Also, it applies additional assertions.
Returns first unverified action.
Prints information about dispatched actions based on actionStackString.
Skips first n unverified actions.
Skips actions while predicate is true.
Skips first unverified action.
Skips all unverified actions.
Calls MiddlewareTestScope.testAction for every action from actions.
Calls middleware under test with given action and joins foreground job.