aboutsummaryrefslogtreecommitdiff
path: root/testApi/src/main/kotlin
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-03-18 19:21:08 +0100
committerPaweł Marks <pmarks@virtuslab.com>2020-03-18 19:21:08 +0100
commit4c8f3bcba59f06a9e8eabe6ac7da8ca976504092 (patch)
treea68c0bf1217010d42bf71d021e1bb28af5620a8f /testApi/src/main/kotlin
parent4e7af2084c98f905b4fcd7fbe231c19bf186205d (diff)
downloaddokka-4c8f3bcba59f06a9e8eabe6ac7da8ca976504092.tar.gz
dokka-4c8f3bcba59f06a9e8eabe6ac7da8ca976504092.tar.bz2
dokka-4c8f3bcba59f06a9e8eabe6ac7da8ca976504092.zip
Fix html renderer tests
Diffstat (limited to 'testApi/src/main/kotlin')
-rw-r--r--testApi/src/main/kotlin/testApi/context/MockContext.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/testApi/src/main/kotlin/testApi/context/MockContext.kt b/testApi/src/main/kotlin/testApi/context/MockContext.kt
index d3def4dc..5236f1f4 100644
--- a/testApi/src/main/kotlin/testApi/context/MockContext.kt
+++ b/testApi/src/main/kotlin/testApi/context/MockContext.kt
@@ -30,7 +30,7 @@ class MockContext(
kclass.constructors.single { it.parameters.isEmpty() }.call().also { it.injectContext(this) }
} as T
- override fun <T : Any, E : ExtensionPoint<T>> get(point: E): List<T> = extensionMap[point] as List<T>
+ override fun <T : Any, E : ExtensionPoint<T>> get(point: E): List<T> = extensionMap[point].orEmpty() as List<T>
override fun <T : Any, E : ExtensionPoint<T>> single(point: E): T = get(point).single()