X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=test%2FTest.hs;h=95e3d5e9eeb1dce39add9f5c89a104d7c54a9d17;hb=bf56f6dd8c0b0fc34770135819caa54a6410b1df;hp=604ea1c834978c7432b5eeb0db92ae2d3d49e301;hpb=df782ad008b840c0860173821226542e2e70f2e9;p=lsp-test.git diff --git a/test/Test.hs b/test/Test.hs index 604ea1c..95e3d5e 100644 --- a/test/Test.hs +++ b/test/Test.hs @@ -5,9 +5,10 @@ import Data.Proxy import Control.Monad.IO.Class import Control.Lens hiding (List) import Language.Haskell.LSP.Test +import Language.Haskell.LSP.Test.Replay import Language.Haskell.LSP.TH.DataTypesJSON -main = hspec $ +main = hspec $ do describe "manual session validation" $ it "passes a test" $ runSession "test/recordings/renamePass" $ do @@ -32,3 +33,7 @@ main = hspec $ mainSymbol ^. kind `shouldBe` SkFunction mainSymbol ^. location . range `shouldBe` Range (Position 3 0) (Position 3 4) mainSymbol ^. containerName `shouldBe` Nothing + + describe "replay session" $ + it "passes a test" $ + replaySession "test/recordings/renamePass" `shouldReturn` True \ No newline at end of file