From: Luke Lau Date: Sun, 5 May 2019 21:31:25 +0000 (+0100) Subject: Fix getTypeDefinitions test X-Git-Tag: 0.5.3.0~5^2 X-Git-Url: http://git.lukelau.me/?p=lsp-test.git;a=commitdiff_plain;h=8cd3d41fef5b055ee1c79e6d83858d70c599367b Fix getTypeDefinitions test --- diff --git a/test/Test.hs b/test/Test.hs index 09f8b34..2372cbe 100644 --- a/test/Test.hs +++ b/test/Test.hs @@ -264,7 +264,7 @@ main = hspec $ 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 + liftIO $ defs `shouldBe` [Location (doc ^. uri) (mkRange 10 0 14 19)] -- Type definition describe "waitForDiagnosticsSource" $ it "works" $ runSession "hie" fullCaps "test/data" $ do