Package-level declarations
Types
Link copied to clipboard
A Collection that mutates in a FIFO manner.
Link copied to clipboard
interface TestDispatchScope<State> : MutableDispatchScope<State> , DispatchScope<State> , ActionsAssertScope
A DispatchScope for testing purposes that registers dispatched actions.
Functions
Link copied to clipboard
Creates empty queue of type T.
Link copied to clipboard
fun <State> TestDispatchScope(initialState: State, initialClosure: DispatchClosure = EmptyDispatchClosure, initialOnDispatch: MutableDispatchScope<State>.(Action) -> Unit = { }): TestDispatchScope<State>
Creates a TestDispatchScope with initialState, initialClosure and initialOnDispatch.
Link copied to clipboard
fun <State> TestStore(initialState: State, initialClosure: DispatchClosure = EmptyDispatchClosure, initialOnDispatch: MutableDispatchScope<State>.(Action) -> Unit = { }, strict: Boolean = true): TestStore<State>
Creates a TestStore with initialState, initialClosure and strict. If strict is true, every TestStore.test must verify every dispatched action.