Don't include GLOBAL ERROR errors for expectErrors

This commit is contained in:
Jeroen Engels 2021-03-06 21:35:54 +01:00
parent 702213320c
commit 4cfd1228d1

View File

@ -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