avh4/elm-testable/3.0.0

NOTE: this package is not compatible with Elm 0.19.1

Testable

This module converts Testable things into real things.

Basics

cmd : Cmd msg -> Cmd msg

Converts a Testable.Cmd into a Cmd

Testable.Cmd.none |> Testable.cmd
    == Cmd.none
task : Task error success -> Task error success

Converts a Testable.Task into an Task

Testable.Task.succeed "A" |> Testable.task
    == Task.succeed "A"

StartApp helpers

init : ( model, Cmd msg ) -> ( model, Cmd msg )

Converts a testable StartApp-style init value into a standard StartApp init value

(msg -> model -> ( model, Cmd msg ))
-> msg
-> model
-> ( model, Cmd msg )

Converts a testable StartApp-style update function into a standard StartApp update function