From 1c072d4b929f3b4b2a2a03cb1c3812ffbfc8f7ec Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Tue, 7 May 2024 18:45:44 +0200 Subject: [PATCH] Use new function --- tests/Css/NoUnusedClassesTest.elm | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/tests/Css/NoUnusedClassesTest.elm b/tests/Css/NoUnusedClassesTest.elm index c7ec7598..15afccf2 100644 --- a/tests/Css/NoUnusedClassesTest.elm +++ b/tests/Css/NoUnusedClassesTest.elm @@ -37,18 +37,15 @@ view model = """ |> Review.Test.runWithProjectData projectWithCssClasses (cssFiles [ FilePattern.include "*.css" ] |> rule) - |> Review.Test.expectErrorsForModules - [ ( "some-files.css" - , [ Review.Test.error - { message = "Unknown CSS class \"unknown\"" - , details = - [ "I could not find this class in CSS files. Have you made a typo?" - , "Here are similarly-named classes:\n - unknown2\n - known" - ] - , under = "-- First line" - } - ] - ) + |> Review.Test.expectErrorsForExtraFile "some-file.css" + [ Review.Test.error + { message = "Unknown CSS class \"unknown\"" + , details = + [ "I could not find this class in CSS files. Have you made a typo?" + , "Here are similarly-named classes:\n - unknown2\n - known" + ] + , under = "-- First line" + } ] ]