tricycle / elm-actor-framework-sandbox / Framework.Sandbox.TestCase


type alias TestCase appFlags componentModel componentMsgIn componentMsgOut output =
Framework.Sandbox.Internal.TestCases.TestCase.TestCase appFlags componentModel componentMsgIn componentMsgOut output

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

Create a new TestCase

addActions : 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.

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

Replace all current actions with a new list of actions

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

Supply an alternative intial value (alternative to your SandboxComponent)

mockMsgOut : (Basics.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

mockRenderPid : (Framework.Actor.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