avh4/elm-testable/2.0.0

NOTE: this package is not compatible with Elm 0.19.1

Testable

This module converts Testable things into real things.

Basics

effects : Effects action -> Effects action

Converts a Testable.Effects into an Effects

Testable.Effects.none |> Testable.effects
    == Effects.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, Effects action ) -> ( model, Effects action )

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

(action -> model -> ( model, Effects action ))
-> action
-> model
-> ( model, Effects action )

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