Fix tests
authorLuke Lau <luke_lau@icloud.com>
Wed, 27 Jun 2018 23:46:48 +0000 (00:46 +0100)
committerLuke Lau <luke_lau@icloud.com>
Wed, 27 Jun 2018 23:46:48 +0000 (00:46 +0100)
test/Test.hs

index c6ef7e29e90ca44e6ad592e379aa7f3ef64579f7..79bb30312668857a68322a99a3ad46a34896015f 100644 (file)
@@ -29,7 +29,7 @@ main = hspec $ do
 
         noDiagnostics
 
-        rspSymbols <- documentSymbols doc
+        rspSymbols <- getDocumentSymbols doc
 
         liftIO $ do
           let (List symbols) = fromJust (rspSymbols ^. result)
@@ -102,7 +102,7 @@ main = hspec $ do
 
         noDiagnostics
 
-        rspSymbols <- documentSymbols doc
+        rspSymbols <- getDocumentSymbols doc
 
         let (List symbols) = fromJust (rspSymbols ^. result)
             fooSymbol = head symbols
@@ -148,7 +148,7 @@ main = hspec $ do
         skipMany anyNotification
         _ <- response :: Session ExecuteCommandResponse
 
-        contents <- documentEdit doc
+        contents <- getDocumentEdit doc
         liftIO $ contents `shouldBe` "main :: IO Int\nmain = return 42"
         noDiagnostics