mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-29 01:24:35 +03:00
Use new function
This commit is contained in:
parent
1bca6d3e95
commit
1c072d4b92
@ -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"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user