Add test for initialize response
authorLuke Lau <luke_lau@icloud.com>
Wed, 13 Jun 2018 17:25:10 +0000 (13:25 -0400)
committerLuke Lau <luke_lau@icloud.com>
Wed, 13 Jun 2018 17:25:10 +0000 (13:25 -0400)
test/Test.hs

index 16c8d01cdb57be9f4710a98df48ad00c121c6fa3..ce8a3573c3f92edaf0c5efa4a523be83479625a9 100644 (file)
@@ -36,6 +36,9 @@ main = hspec $ do
                       skipMany loggingNotification
                       anyRequest
         in session `shouldThrow` anyException
+    it "can get initialize response" $ runSession "hie --lsp" "test/data/renamePass" $ do
+      rsp <- getInitializeResponse
+      liftIO $ rsp ^. result `shouldNotBe` Nothing
   
   describe "replay session" $ do
     it "passes a test" $