mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-25 02:34:36 +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
|
||||
|
||||
SuccessfulRun runResults ->
|
||||
case runResults of
|
||||
case List.filter (\runResult -> runResult.moduleName /= "GLOBAL ERROR") runResults of
|
||||
runResult :: [] ->
|
||||
checkAllErrorsMatch runResult expectedErrors
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user