mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-26 03:04:48 +03:00
Don't include GLOBAL ERROR errors for expectErrors
This commit is contained in:
parent
702213320c
commit
4cfd1228d1
@ -619,7 +619,7 @@ expectErrors expectedErrors reviewResult =
|
|||||||
Expect.fail errorMessage
|
Expect.fail errorMessage
|
||||||
|
|
||||||
SuccessfulRun runResults ->
|
SuccessfulRun runResults ->
|
||||||
case runResults of
|
case List.filter (\runResult -> runResult.moduleName /= "GLOBAL ERROR") runResults of
|
||||||
runResult :: [] ->
|
runResult :: [] ->
|
||||||
checkAllErrorsMatch runResult expectedErrors
|
checkAllErrorsMatch runResult expectedErrors
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user