built_redux_test_utils library

Functions

expectDispatched<T>(ActionDispatcher<T> actionDispatcher, {void verifier(Action<T> action)?, int count = 1, int max = 0, String? id, String? reason}) → void
expectDispatched verifies that a given action is dispatched at a later time using expectAsync1. It runs the verifier function provided when the action is called so you can perform expects on the payload. It takes all of the same optional params as expectAsync.