bellroy/elm-actor-framework-sandbox/1.0.0

Formerly tricycle/elm-actor-framework-sandbox. Search finds this package by either name.

Framework.Sandbox.TestCase

type alias TestCase appFlags componentModel componentMsgIn componentMsgOut output =
TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output
{ title : String
, description : String
, test :
(componentModel -> output)
-> componentModel
-> componentModel
-> Expectation
}
-> TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output

Create a new TestCase

List componentMsgIn
-> TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output
-> TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output

Append a list of actions to your current actions in place.

List componentMsgIn
-> TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output
-> TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output

Replace all current actions with a new list of actions

appFlags
-> TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output
-> TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output

Supply an alternative intial value (alternative to your SandboxComponent)

(Int -> componentMsgOut -> List componentMsgIn)
-> TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output
-> TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output

Mock a list of response messages whenever a msgOut gets called

(Pid -> Maybe output)
-> TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output
-> TestCase
appFlags
componentModel
componentMsgIn
componentMsgOut
output

Mock the function that is used to render your internal Pid's