avh4/elm-program-test/3.6.3

NOTE: the latest version is 4.0.1

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 : SimulatedEffect msg

Tell the runtime that there are no commands.

batch : List (SimulatedEffect msg) -> SimulatedEffect msg

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

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

Transform the messages produced by a command.