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,9 +37,8 @@ view model =
"""
|> Review.Test.runWithProjectData projectWithCssClasses
(cssFiles [ FilePattern.include "*.css" ] |> rule)
|> Review.Test.expectErrorsForModules
[ ( "some-files.css"
, [ Review.Test.error
|> 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?"
@ -48,8 +47,6 @@ view model =
, under = "-- First line"
}
]
)
]
]