avh4 / elm-program-test / SimulatedEffect.Sub

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

The functions here produce SimulatedSubs instead of Subs, which are meant to be used to help you implement the function to provide when using ProgramTest.withSimulatedSubscriptions.

none : ProgramTest.SimulatedSub msg

Tell the runtime that there are no subscriptions.

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

When you need to subscribe to multiple things, you can create a batch of subscriptions.

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

Transform the messages produced by a subscription.