mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-24 02:02:29 +03:00
Change error message for unexpectedDetails
This commit is contained in:
parent
e50f753d31
commit
f1f97de257
@ -144,7 +144,7 @@ calling `Rule.error`.""")
|
||||
unexpectedDetails : List String -> ReviewError -> String
|
||||
unexpectedDetails expectedDetails error =
|
||||
failureMessage "UNEXPECTED ERROR DETAILS"
|
||||
("""I found an error with the following message:
|
||||
("""I found an error for a file with the following message:
|
||||
|
||||
""" ++ wrapInQuotes (Rule.errorMessage error) ++ """
|
||||
|
||||
|
@ -279,7 +279,7 @@ unexpectedDetailsTest =
|
||||
|> expectMessageEqual """
|
||||
\u{001B}[31m\u{001B}[1mUNEXPECTED ERROR DETAILS\u{001B}[22m\u{001B}[39m
|
||||
|
||||
I found an error with the following message:
|
||||
I found an error for a file with the following message:
|
||||
|
||||
`Some error`
|
||||
|
||||
@ -317,7 +317,7 @@ when I was expecting them to be:
|
||||
|> expectMessageEqual """
|
||||
\u{001B}[31m\u{001B}[1mUNEXPECTED ERROR DETAILS\u{001B}[22m\u{001B}[39m
|
||||
|
||||
I found an error with the following message:
|
||||
I found an error for a file with the following message:
|
||||
|
||||
`Some other error`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user