diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/panel/RootSpec.kt | 3 | ||||
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/utils/UtilsSpec.kt | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/panel/RootSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/panel/RootSpec.kt index 9e4342cc..659dac9a 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/panel/RootSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/panel/RootSpec.kt @@ -21,7 +21,6 @@ */ package test.pl.treksoft.kvision.panel -import pl.treksoft.kvision.modal.Modal import pl.treksoft.kvision.panel.Root import test.pl.treksoft.kvision.DomSpec import kotlin.browser.document @@ -40,7 +39,7 @@ class RootSpec : DomSpec { } @Test - fun getSnClass_Fluid() { + fun getSnClassFluid() { run { Root("test", fixed = true) val rootElem = document.getElementById("test") diff --git a/src/test/kotlin/test/pl/treksoft/kvision/utils/UtilsSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/utils/UtilsSpec.kt index 97e157bd..36217dd7 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/utils/UtilsSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/utils/UtilsSpec.kt @@ -21,9 +21,9 @@ */ package test.pl.treksoft.kvision.utils -import pl.treksoft.kvision.utils.toDateF +import pl.treksoft.kvision.types.toDateF +import pl.treksoft.kvision.types.toStringF import pl.treksoft.kvision.utils.toHexString -import pl.treksoft.kvision.utils.toStringF import test.pl.treksoft.kvision.SimpleSpec import kotlin.js.Date import kotlin.test.Test @@ -47,7 +47,7 @@ class UtilsSpec : SimpleSpec { val res = "2017-03-14 14:50:35".toDateF() assertEquals( js("new Date(2017,2,14,14,50,35).getTime()"), - res?.getTime(), + res.getTime(), "Should convert String value to Date" ) } |