mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-27 21:29:55 +03:00
Normalize error message test assertions.
This commit is contained in:
parent
fbc161c77b
commit
bdd4ace0fd
@ -506,8 +506,6 @@ String was not uppercased"""
|
||||
(expectErrorsPort
|
||||
"""-- STATIC HTTP DECODING ERROR ----------------------------------------------------- elm-pages
|
||||
|
||||
elm-pages
|
||||
|
||||
I encountered some errors while decoding this JSON:
|
||||
|
||||
The user should get this message from the CLI.
|
||||
@ -1037,7 +1035,10 @@ normalizeNewlines string =
|
||||
string
|
||||
|> Regex.replace
|
||||
(Regex.fromString "(\n)+" |> Maybe.withDefault Regex.never)
|
||||
(\_ -> "\n")
|
||||
(\_ -> "")
|
||||
|> Regex.replace
|
||||
(Regex.fromString "( )+" |> Maybe.withDefault Regex.never)
|
||||
(\_ -> " ")
|
||||
|
||||
|
||||
normalizeErrorsExpectEqual : List String -> List String -> Expect.Expectation
|
||||
|
Loading…
Reference in New Issue
Block a user