mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-25 02:34:36 +03:00
Fix inversion of result and expected fixed source code in whitespace failure message
This commit is contained in:
parent
cfd7a9157e
commit
5e2b633c54
@ -388,7 +388,7 @@ but I was expecting:
|
||||
fixedCodeWhitespaceMismatch : SourceCode -> SourceCode -> ReviewError -> String
|
||||
fixedCodeWhitespaceMismatch resultingSourceCode expectedSourceCode error =
|
||||
let
|
||||
( resulting, expected ) =
|
||||
( expected, resulting ) =
|
||||
highlightDifferencesInSourceCodes resultingSourceCode expectedSourceCode
|
||||
in
|
||||
failureMessage "FIXED CODE MISMATCH (WHITESPACE ISSUE)"
|
||||
|
@ -821,8 +821,8 @@ fixedCodeMismatchTest =
|
||||
test "fixedCodeMismatch" <|
|
||||
\() ->
|
||||
let
|
||||
sourceCode : String
|
||||
sourceCode =
|
||||
fixedSourceCode : String
|
||||
fixedSourceCode =
|
||||
"""module A exposing (b)
|
||||
abcd =
|
||||
1"""
|
||||
@ -842,7 +842,7 @@ abcd =
|
||||
{ start = { row = 3, column = 1 }, end = { row = 3, column = 5 } }
|
||||
in
|
||||
FailureMessage.fixedCodeMismatch
|
||||
sourceCode
|
||||
fixedSourceCode
|
||||
expectedSourceCode
|
||||
error
|
||||
|> expectMessageEqual """
|
||||
|
Loading…
Reference in New Issue
Block a user