avh4 / elm-program-test / SimulatedEffect.Cmd

This module parallels elm/core's Platform.Cmd module.

The functions here produce SimulatedEffects instead of Cmds, which are meant to be used to help you implement the function to provide when using ProgramTest.withSimulatedEffects.

none : ProgramTest.SimulatedEffect msg

Tell the runtime that there are no commands.

batch : List (ProgramTest.SimulatedEffect msg) -> ProgramTest.SimulatedEffect msg

When you need the runtime system to perform a couple commands, you can batch them together.

map : (a -> msg) -> ProgramTest.SimulatedEffect a -> ProgramTest.SimulatedEffect msg

Transform the messages produced by a command.