aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-10-13 03:37:40 +0200
committerRobert Jaros <rjaros@finn.pl>2018-10-13 03:37:40 +0200
commitebce2c4b839c0b2f8be78bc31c1ce12c45a0164c (patch)
tree7cac3c5449eb8aa398b279d62d9a67ed34fa4115 /src/test
parent470953c78c2509224bb452c16f8bbea54e53b3d7 (diff)
downloadkvision-ebce2c4b839c0b2f8be78bc31c1ce12c45a0164c.tar.gz
kvision-ebce2c4b839c0b2f8be78bc31c1ce12c45a0164c.tar.bz2
kvision-ebce2c4b839c0b2f8be78bc31c1ce12c45a0164c.zip
Major refactoring of the multi-platform components.
Dependencies upgrade. A lot of code style fixes.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/panel/RootSpec.kt3
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/utils/UtilsSpec.kt6
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"
)
}