File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -344,14 +344,15 @@ unusedTermTests = testGroup "unused term code actions" [
344
344
liftIO $ do
345
345
let cas = map fromAction res
346
346
kinds = map (^. L. kind) cas
347
- nub kinds @?= [ Just CodeActionRefactorInline , Just CodeActionRefactorExtract , Just CodeActionQuickFix ]
347
+ assertBool " Test precondition failed " $ Just CodeActionQuickFix `elem` kinds
348
348
-- Verify that that when we set the only parameter, we only get actions
349
349
-- of the right kind.
350
350
ResponseMessage _ _ (Right (List res)) <- request STextDocumentCodeAction params
351
351
liftIO $ do
352
352
let cas = map fromAction res
353
353
kinds = map (^. L. kind) cas
354
- nub kinds @?= nub [Just CodeActionRefactorInline , Just CodeActionRefactorExtract ]
354
+ assertBool " Quick fixes should have been filtered out"
355
+ $ Just CodeActionQuickFix `notElem` kinds
355
356
]
356
357
357
358
expectFailIfGhc9 :: String -> TestTree -> TestTree
Original file line number Diff line number Diff line change 1
1
cradle :
2
2
direct :
3
3
arguments :
4
+ - " -Wmissing-signatures"
4
5
- " CodeActionImport"
5
6
- " CodeActionOnly"
6
7
- " CodeActionRename"
You can’t perform that action at this time.
0 commit comments