From: fendor Date: Sat, 6 Apr 2019 17:46:49 +0000 (+0200) Subject: Execute getTypeDefinition test X-Git-Tag: 0.5.3.0~5^2~3 X-Git-Url: http://git.lukelau.me/?p=lsp-test.git;a=commitdiff_plain;h=dadb02585fce7f82bb01bdd2c03077ec16be1b9e Execute getTypeDefinition test --- diff --git a/test/Test.hs b/test/Test.hs index 0fc2f53..09f8b34 100644 --- a/test/Test.hs +++ b/test/Test.hs @@ -259,12 +259,12 @@ main = hspec $ do defs <- getDefinitions doc pos liftIO $ defs `shouldBe` [Location (doc ^. uri) (mkRange 28 0 28 7)] - -- describe "getTypeDefinitions" $ - -- it "works" $ runSession "hie" fullCaps "test/data/renamePass" $ do - -- doc <- openDoc "Desktop/simple.hs" "haskell" - -- let pos = Position 20 23 -- Quit value - -- defs <- getTypeDefinitions doc pos - -- liftIO $ defs `shouldBe` [Location (doc ^. uri) (mkRange 10 5 10 12)] -- Type definition + describe "getTypeDefinitions" $ + it "works" $ runSession "hie" fullCaps "test/data/renamePass" $ do + doc <- openDoc "Desktop/simple.hs" "haskell" + let pos = Position 20 23 -- Quit value + defs <- getTypeDefinitions doc pos + liftIO $ defs `shouldBe` [Location (doc ^. uri) (mkRange 10 0 15 19)] -- Type definition describe "waitForDiagnosticsSource" $ it "works" $ runSession "hie" fullCaps "test/data" $ do