Skip to content

Commit

Permalink
Fix flipped error message in global error details test failure (#130)
Browse files Browse the repository at this point in the history
Error message for `unexpectedGlobalErrorDetails` and
`unexpectedConfigurationErrorDetails` had their expected and actual
details flipped.
  • Loading branch information
SiriusStarr authored Jul 17, 2022
1 parent 7fec143 commit 9bdc37b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/Review/Test/FailureMessage.elm
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ unexpectedGlobalErrorDetails expectedDetails error =
and I was expecting its details to be:
""" ++ formatDetails error.details ++ """
""" ++ formatDetails expectedDetails ++ """
but I found these details:
""" ++ formatDetails expectedDetails)
""" ++ formatDetails error.details)


unexpectedConfigurationErrorDetails : List String -> { message : String, details : List String } -> String
Expand All @@ -211,11 +211,11 @@ unexpectedConfigurationErrorDetails expectedDetails error =
and I was expecting its details to be:
""" ++ formatDetails error.details ++ """
""" ++ formatDetails expectedDetails ++ """
but I found these details:
""" ++ formatDetails expectedDetails)
""" ++ formatDetails error.details)


emptyDetails : String -> String
Expand Down
8 changes: 4 additions & 4 deletions tests/Review/Test/FailureMessageTest.elm
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,11 @@ I found a global error with the following message:
and I was expecting its details to be:
`Some other details`
`Some details`
but I found these details:
`Some details`"""
`Some other details`"""


unexpectedConfigurationErrorDetailsTest : Test
Expand Down Expand Up @@ -430,11 +430,11 @@ I found a configuration error with the following message:
and I was expecting its details to be:
`Some other details`
`Some details`
but I found these details:
`Some details`"""
`Some other details`"""


emptyDetailsTest : Test
Expand Down

0 comments on commit 9bdc37b

Please sign in to comment.