We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61eb263 commit 1cb06edCopy full SHA for 1cb06ed
test/functional/FunctionalCodeAction.hs
@@ -166,6 +166,10 @@ hlintTests = testGroup "hlint suggestions" [
166
runHlintSession subdir =
167
failIfSessionTimeout . runSession hlsCommand fullCaps ("test/testdata/hlint" </> subdir)
168
169
+ noHlintDiagnostics :: [Diagnostic] -> Assertion
170
+ noHlintDiagnostics diags =
171
+ Just "hlint" `notElem` map (^. L.source) diags @? "There are no hlint diagnostics"
172
+
173
testHlintDiagnostics doc = do
174
diags <- waitForDiagnosticsFromSource doc "hlint"
175
liftIO $ length diags > 0 @? "There are hlint diagnostics"
0 commit comments