From 974340b4a07fe4b2c6eaed1e2889b55ee04ff4f2 Mon Sep 17 00:00:00 2001 From: berezinant Date: Tue, 21 Jan 2025 15:22:34 +0100 Subject: [PATCH] test: updated footer tests --- .../src/test/kotlin/renderers/html/CustomFooterTest.kt | 3 +-- .../src/test/kotlin/renderers/html/FooterMessageTest.kt | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dokka-subprojects/plugin-base/src/test/kotlin/renderers/html/CustomFooterTest.kt b/dokka-subprojects/plugin-base/src/test/kotlin/renderers/html/CustomFooterTest.kt index 927e7d35be..5065661fd9 100644 --- a/dokka-subprojects/plugin-base/src/test/kotlin/renderers/html/CustomFooterTest.kt +++ b/dokka-subprojects/plugin-base/src/test/kotlin/renderers/html/CustomFooterTest.kt @@ -27,8 +27,7 @@ class CustomFooterTest : HtmlRenderingOnlyTestBase() { HtmlRenderer(context).render(page) renderedContent.match( A(), - Span(Div("Custom message")), - Span(Span("Generated by "), A(Span("dokka"))) + Div(Div(Span("Generated by "), A("Dokka"), Div(Div("Custom message")))) ) } diff --git a/dokka-subprojects/plugin-base/src/test/kotlin/renderers/html/FooterMessageTest.kt b/dokka-subprojects/plugin-base/src/test/kotlin/renderers/html/FooterMessageTest.kt index 9bf620d057..d3d0aa18f4 100644 --- a/dokka-subprojects/plugin-base/src/test/kotlin/renderers/html/FooterMessageTest.kt +++ b/dokka-subprojects/plugin-base/src/test/kotlin/renderers/html/FooterMessageTest.kt @@ -10,6 +10,7 @@ import org.jsoup.Jsoup import org.jsoup.nodes.Element import renderers.testPage import utils.A +import utils.Div import utils.Span import utils.match import kotlin.test.Test @@ -21,8 +22,7 @@ class FooterMessageTest : HtmlRenderingOnlyTestBase() { HtmlRenderer(context).render(page) renderedContent.match( A(), - Span(defaultFooterMessage), - Span(Span("Generated by "), A(Span("dokka"))) + Div(Div(Span("Generated by "), A("Dokka"), Div(defaultFooterMessage))) ) }