Skip to content

Commit 1cb06ed

Browse files
committed
Restore utility function
1 parent 61eb263 commit 1cb06ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/FunctionalCodeAction.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ hlintTests = testGroup "hlint suggestions" [
166166
runHlintSession subdir =
167167
failIfSessionTimeout . runSession hlsCommand fullCaps ("test/testdata/hlint" </> subdir)
168168

169+
noHlintDiagnostics :: [Diagnostic] -> Assertion
170+
noHlintDiagnostics diags =
171+
Just "hlint" `notElem` map (^. L.source) diags @? "There are no hlint diagnostics"
172+
169173
testHlintDiagnostics doc = do
170174
diags <- waitForDiagnosticsFromSource doc "hlint"
171175
liftIO $ length diags > 0 @? "There are hlint diagnostics"

0 commit comments

Comments
 (0)