This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Form.Test.ValidationExpectation

Test expectations for use with functions from Form.Test.

type ValidationExpectation e a = Valid | ValidDecodesTo a | Invalid (Form.Error.ErrorValue e) | InvalidCustomError e

Use with Form.Test.describeValidation or Form.Test.testValidation to express the result you expect.

module Form.Test.ValidationExpectation exposing (ValidationExpectation(..))

{-| Test expectations for use with functions from `Form.Test`.

@docs ValidationExpectation

-}

import Form.Error


{-| Use with `Form.Test.describeValidation` or `Form.Test.testValidation` to express the result you expect.
-}
type ValidationExpectation e a
    = Valid
    | ValidDecodesTo a
    | Invalid (Form.Error.ErrorValue e)
    | InvalidCustomError e