Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit cbfd9a1

Browse files
committed
Fix tests
1 parent 8e57671 commit cbfd9a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/functional/TypeDefinitionSpec.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ spec = describe "type definitions" $ do
6464
it "find local definition of type def"
6565
$ runSession hieCommand fullCaps "test/testdata/gototest"
6666
$ do
67-
doc <- openDoc "src/Lib2.hs" "haskell"
68-
otherDoc <- openDoc "src/Lib.hs" "haskell"
69-
closeDoc otherDoc
67+
doc <- openDoc "src/Lib.hs" "haskell"
7068
defs <- getTypeDefinitions doc (toPos (35, 16))
7169
liftIO $ do
7270
fp <- canonicalizePath "test/testdata/gototest/src/Lib.hs"
@@ -78,7 +76,9 @@ spec = describe "type definitions" $ do
7876
it "find type-definition of type def in component"
7977
$ runSession hieCommand fullCaps "test/testdata/gototest"
8078
$ do
81-
doc <- openDoc "src/Lib.hs" "haskell"
79+
doc <- openDoc "src/Lib2.hs" "haskell"
80+
otherDoc <- openDoc "src/Lib.hs" "haskell"
81+
closeDoc otherDoc
8282
defs <- getTypeDefinitions doc (toPos (13, 20))
8383
liftIO $ do
8484
fp <- canonicalizePath "test/testdata/gototest/src/Lib.hs"

0 commit comments

Comments
 (0)