diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt | 2 | ||||
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/core/StyleSpec.kt | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt index f82dbcd3..37d7a9df 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt @@ -63,7 +63,7 @@ interface DomSpec : TestSpec { val div = document.getElementById("pretest") div?.let { jQuery(it).remove() } jQuery(".modal-backdrop").remove() - Root.roots.forEach { it.dispose() } + Root.shutdown() } fun assertEqualsHtml(expected: String?, actual: String?, message: String?) { diff --git a/src/test/kotlin/test/pl/treksoft/kvision/core/StyleSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/core/StyleSpec.kt index bfcf5208..bdb93744 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/core/StyleSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/core/StyleSpec.kt @@ -24,7 +24,6 @@ package test.pl.treksoft.kvision.core import pl.treksoft.kvision.core.Col import pl.treksoft.kvision.core.Color import pl.treksoft.kvision.core.Overflow -import pl.treksoft.kvision.core.Style import pl.treksoft.kvision.core.Style.Companion.style import pl.treksoft.kvision.core.Widget.Companion.widget import pl.treksoft.kvision.panel.Root @@ -53,7 +52,6 @@ class StyleSpec : DomSpec { element?.innerHTML, "Should render correct style element" ) - Style.styles.clear() } } @@ -75,7 +73,6 @@ class StyleSpec : DomSpec { element?.innerHTML, "Should render correct style element with custom class name" ) - Style.styles.clear() } } @@ -104,7 +101,6 @@ class StyleSpec : DomSpec { element?.innerHTML, "Should render correct child style class name" ) - Style.styles.clear() } } }
\ No newline at end of file |