X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=test%2FTest.hs;h=fd2466677b3c80702f25482dc5e515225e8eb142;hb=3081abf6552222c5dfc7928d4c708dd03015548e;hp=13e7ccc5d3066b687c7ca4391a3e6e8af62cbe77;hpb=dee96dc60f35d20adc03294acd14ba6bc22bb6c8;p=lsp-test.git diff --git a/test/Test.hs b/test/Test.hs index 13e7ccc..fd24666 100644 --- a/test/Test.hs +++ b/test/Test.hs @@ -14,10 +14,7 @@ main = hspec $ do describe "manual session validation" $ it "passes a test" $ runSession "test/recordings/renamePass" $ do - docItem <- getDocItem "Desktop/simple.hs" "haskell" - docId <- TextDocumentIdentifier <$> getDocUri "Desktop/simple.hs" - - sendNotification TextDocumentDidOpen (DidOpenTextDocumentParams docItem) + doc <- openDoc "Desktop/simple.hs" "haskell" skipMany loggingNotification @@ -27,7 +24,7 @@ main = hspec $ do sendRequest (Proxy :: Proxy DocumentSymbolRequest) TextDocumentDocumentSymbol - (DocumentSymbolParams docId) + (DocumentSymbolParams doc) RspDocumentSymbols rspSymbols <- response