Skip to content

Commit c35cdda

Browse files
committed
Update tests to match new diags and ca's
1 parent 8b8e568 commit c35cdda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/functional/FunctionalCodeAction.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,18 @@ hlintTests = testGroup "hlint suggestions" [
5252
length diags @?= 2 -- "Eta Reduce" and "Redundant Id"
5353
reduceDiag ^. L.range @?= Range (Position 1 0) (Position 1 12)
5454
reduceDiag ^. L.severity @?= Just DsInfo
55-
reduceDiag ^. L.code @?= Just (StringValue "Eta reduce")
55+
reduceDiag ^. L.code @?= Just (StringValue "refact:Eta reduce")
5656
reduceDiag ^. L.source @?= Just "hlint"
5757

5858
cas <- map fromAction <$> getAllCodeActions doc
5959

6060
let applyAll = find (\ca -> "Apply all hints" `T.isSuffixOf` (ca ^. L.title)) cas
6161
let redId = find (\ca -> "Redundant id" `T.isSuffixOf` (ca ^. L.title)) cas
62+
let redEta = find (\ca -> "Eta reduce" `T.isSuffixOf` (ca ^. L.title)) cas
6263

6364
liftIO $ isJust applyAll @? "There is 'Apply all hints' code action"
6465
liftIO $ isJust redId @? "There is 'Redundant id' code action"
66+
liftIO $ isJust redEta @? "There is 'Eta reduce' code action"
6567

6668
executeCodeAction (fromJust redId)
6769

0 commit comments

Comments
 (0)