test

inline fun test(strict: Boolean? = null, state: State = initialState, closure: DispatchClosure = EmptyDispatchClosure, block: MiddlewareTestScope<State>.() -> Unit)

Runs a middleware test from a block. Each test call initiates middleware separately.

Parameters

strict

if it is not null, overwrites strict param value for this test call.

state

provides initial state for this test

closure

provides initial closure for this test