avh4/elm-program-test/3.7.0

NOTE: the latest version is 4.0.1

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

Tell the runtime that there are no subscriptions.

batch : List (SimulatedSub msg) -> SimulatedSub msg

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

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

Transform the messages produced by a subscription.