From 4cfd1228d1d5a48243891073f546e6db0230fa0f Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Sat, 6 Mar 2021 21:35:54 +0100 Subject: [PATCH] Don't include GLOBAL ERROR errors for expectErrors --- src/Review/Test.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Review/Test.elm b/src/Review/Test.elm index 41b30742..c3b58da0 100644 --- a/src/Review/Test.elm +++ b/src/Review/Test.elm @@ -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