Use new function

This commit is contained in:
Jeroen Engels 2024-05-07 18:45:44 +02:00
parent 1bca6d3e95
commit 1c072d4b92

View File

@ -37,18 +37,15 @@ view model =
""" """
|> Review.Test.runWithProjectData projectWithCssClasses |> Review.Test.runWithProjectData projectWithCssClasses
(cssFiles [ FilePattern.include "*.css" ] |> rule) (cssFiles [ FilePattern.include "*.css" ] |> rule)
|> Review.Test.expectErrorsForModules |> Review.Test.expectErrorsForExtraFile "some-file.css"
[ ( "some-files.css" [ Review.Test.error
, [ Review.Test.error { message = "Unknown CSS class \"unknown\""
{ message = "Unknown CSS class \"unknown\"" , details =
, details = [ "I could not find this class in CSS files. Have you made a typo?"
[ "I could not find this class in CSS files. Have you made a typo?" , "Here are similarly-named classes:\n - unknown2\n - known"
, "Here are similarly-named classes:\n - unknown2\n - known" ]
] , under = "-- First line"
, under = "-- First line" }
}
]
)
] ]
] ]