aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/src/main/kotlin/org
diff options
context:
space:
mode:
Diffstat (limited to 'integration-tests/src/main/kotlin/org')
-rw-r--r--integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt11
1 files changed, 10 insertions, 1 deletions
diff --git a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt
index d21106fa..c2f4f49b 100644
--- a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt
+++ b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt
@@ -33,11 +33,20 @@ abstract class AbstractIntegrationTest {
)
}
- protected fun assertNoUnresolvedLinks(file: File) {
+ protected fun assertNoEmptyLinks(file: File) {
val regex = Regex("[\"']#[\"']")
val fileText = file.readText()
assertFalse(
fileText.contains(regex),
+ "Unexpected empty link in ${file.path}\n" + fileText
+ )
+ }
+
+ protected fun assertNoUnresolvedLinks(file: File) {
+ val regex = Regex("data-unresolved-link")
+ val fileText = file.readText()
+ assertFalse(
+ fileText.contains(regex),
"Unexpected unresolved link in ${file.path}\n" + fileText
)
}