jwheeler-cp / elm-form / 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.