diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-04-04 12:40:20 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-04-04 12:40:20 +0200 |
commit | a195fa82f8b4f75cc4fc2dc2a2d578ec45cf4323 (patch) | |
tree | 48a863d0b3da00e15dfc732afba979c9e86153b4 /src | |
parent | 11dd51f53f9e331d8217122e98d17b11e62769d5 (diff) | |
download | kvision-a195fa82f8b4f75cc4fc2dc2a2d578ec45cf4323.tar.gz kvision-a195fa82f8b4f75cc4fc2dc2a2d578ec45cf4323.tar.bz2 kvision-a195fa82f8b4f75cc4fc2dc2a2d578ec45cf4323.zip |
Fix base test classes.
Diffstat (limited to 'src')
-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 |