File tree 1 file changed +2
-6
lines changed 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,11 @@ hlintTests = testGroup "hlint suggestions" [
48
48
doc <- openDoc " ApplyRefact2.hs" " haskell"
49
49
diags@ (reduceDiag: _) <- waitForDiagnosticsSource " hlint"
50
50
51
- let etaReduceCode = case ghcVersion of
52
- GHC810 -> " refact:Eta reduce"
53
- _ -> " Eta reduce"
54
-
55
51
liftIO $ do
56
52
length diags @?= 2 -- "Eta Reduce" and "Redundant Id"
57
53
reduceDiag ^. L. range @?= Range (Position 1 0 ) (Position 1 12 )
58
54
reduceDiag ^. L. severity @?= Just DsInfo
59
- reduceDiag ^. L. code @?= Just (StringValue etaReduceCode )
55
+ reduceDiag ^. L. code @?= Just (StringValue " refact:Eta reduce " )
60
56
reduceDiag ^. L. source @?= Just " hlint"
61
57
62
58
cas <- map fromAction <$> getAllCodeActions doc
@@ -100,7 +96,7 @@ hlintTests = testGroup "hlint suggestions" [
100
96
101
97
diags' <- waitForDiagnostics
102
98
103
- liftIO $ ( not $ Just " hlint" `elem ` map (^. L. source) diags') @? " There are no hlint diagnostics"
99
+ liftIO $ Just " hlint" `notElem ` map (^. L. source) diags' @? " There are no hlint diagnostics"
104
100
105
101
]
106
102
You can’t perform that action at this time.
0 commit comments