X-Git-Url: http://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=test%2FTest.hs;h=1775765ba641a14314bdfd66e309aab007e328b0;hp=08c21be300e45fc9b87e766750399fc8b62d5329;hb=cdb1ba7038c32bac71a3bc783effc1e07049a985;hpb=d8bbec7af1d3b594d023264e512025c03093cf2b diff --git a/test/Test.hs b/test/Test.hs index 08c21be..1775765 100644 --- a/test/Test.hs +++ b/test/Test.hs @@ -113,7 +113,7 @@ main = hspec $ do selector _ = False sesh = do doc <- openDoc "Desktop/simple.hs" "haskell" - sendRequest' TextDocumentDocumentSymbol (DocumentSymbolParams doc) + sendRequest TextDocumentDocumentSymbol (DocumentSymbolParams doc) skipMany anyNotification message :: Session RenameResponse -- the wrong type in runSession "hie --lsp" fullCaps "test/data/renamePass" sesh @@ -149,7 +149,7 @@ main = hspec $ do (Position 1 14) "Redundant bracket" reqParams = ExecuteCommandParams "applyrefact:applyOne" (Just (List [args])) - sendRequest_ WorkspaceExecuteCommand reqParams + request_ WorkspaceExecuteCommand reqParams editReq <- message :: Session ApplyWorkspaceEditRequest liftIO $ do @@ -172,7 +172,7 @@ main = hspec $ do (Position 1 14) "Redundant bracket" reqParams = ExecuteCommandParams "applyrefact:applyOne" (Just (List [args])) - sendRequest_ WorkspaceExecuteCommand reqParams + request_ WorkspaceExecuteCommand reqParams contents <- getDocumentEdit doc liftIO $ contents `shouldBe` "main :: IO Int\nmain = return 42\n" noDiagnostics