We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd0b615 commit 3adb995Copy full SHA for 3adb995
test/functional/FunctionalCodeAction.hs
@@ -77,12 +77,8 @@ hlintTests = testGroup "hlint suggestions" [
77
78
executeCommand cmd
79
80
- let expectedContent = if "Apply all hints" `T.isSuffixOf` (cmd ^. L.title)
81
- then "main = undefined\nfoo = id\n"
82
- else "main = undefined\nfoo x = x\n" -- only redundant id
83
-
84
contents <- skipManyTill publishDiagnosticsNotification $ getDocumentEdit doc
85
- liftIO $ contents @?= expectedContent
+ liftIO $ contents `elem` ["main = undefined\nfoo = id\n", "main = undefined\nfoo x = x\n"] @? "Command is applied"
86
87
, testCase "changing configuration enables or disables hints" $ runSession hlsCommand fullCaps "test/testdata/hlint" $ do
88
let config = def { hlintOn = True }
0 commit comments