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