From ebce2c4b839c0b2f8be78bc31c1ce12c45a0164c Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 13 Oct 2018 03:37:40 +0200 Subject: Major refactoring of the multi-platform components. Dependencies upgrade. A lot of code style fixes. --- src/test/kotlin/test/pl/treksoft/kvision/panel/RootSpec.kt | 3 +-- src/test/kotlin/test/pl/treksoft/kvision/utils/UtilsSpec.kt | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/test') 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" ) } -- cgit