public class TestInterceptor<State> : Interceptor
Interceptor to use in unit tests, to assert specific
Actions are dispatched.
public func actionDispatched(action: Action, oldState: State, newState: State)
Waits for the expected number of
Actions to be intercepted. If the expected number of
Actions are not intercepted before the timout an error is thrown.
public func waitForActions(expectedNumberOfActions: Int, timeout: TimeInterval = 1) throws
The number of
Actions to wait for
The waiting time before failing (in seconds)