diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-21 16:04:00 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-08-24 17:05:30 +0200 |
commit | 708ed6a1e23c854e2e3db78881dfdd8a6992700b (patch) | |
tree | 0806e93599c521106d05c7eb4851dae338fb8363 /plugins/base/src/test/kotlin | |
parent | ad1e4c2833abcc78d7a795b4ec4ac50ebf17520b (diff) | |
download | dokka-708ed6a1e23c854e2e3db78881dfdd8a6992700b.tar.gz dokka-708ed6a1e23c854e2e3db78881dfdd8a6992700b.tar.bz2 dokka-708ed6a1e23c854e2e3db78881dfdd8a6992700b.zip |
Fix LinkableContentTest.kt
Diffstat (limited to 'plugins/base/src/test/kotlin')
-rw-r--r-- | plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt b/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt index 4a7e059c..952780c7 100644 --- a/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt +++ b/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt @@ -72,7 +72,7 @@ class LinkableContentTest : AbstractCoreTest() { sourceRoots = listOf("$testDataDir/jsMain/kotlin") sourceLinks = listOf( SourceLinkDefinitionImpl( - localDirectory = "jsMain/kotlin", + localDirectory = "$testDataDir/jsMain/kotlin", remoteUrl = URL("https://github.com/user/repo/tree/master/src/jsMain/kotlin"), remoteLineSuffix = "#L" ) @@ -85,7 +85,7 @@ class LinkableContentTest : AbstractCoreTest() { sourceRoots = listOf("$testDataDir/jvmMain/kotlin") sourceLinks = listOf( SourceLinkDefinitionImpl( - localDirectory = "jvmMain/kotlin", + localDirectory = "$testDataDir/jvmMain/kotlin", remoteUrl = URL("https://github.com/user/repo/tree/master/src/jvmMain/kotlin"), remoteLineSuffix = "#L" ) @@ -221,7 +221,10 @@ class LinkableContentTest : AbstractCoreTest() { child?.text == "S" }?.safeAs<ContentDRILink>() - Assertions.assertEquals((sample.documentable as WithGenerics).generics.first().dri, returnTypeNode?.address) + Assertions.assertEquals( + (sample.documentable as WithGenerics).generics.first().dri, + returnTypeNode?.address + ) } } } |