From 5e25011690115a6787232c47c1d8558d1af82426 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 20 May 2020 15:13:08 +0200 Subject: Support for jQuery animations (#154) --- src/test/kotlin/test/pl/treksoft/kvision/utils/UtilsSpec.kt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/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 36217dd7..2bf63aaa 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/utils/UtilsSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/utils/UtilsSpec.kt @@ -23,6 +23,7 @@ package test.pl.treksoft.kvision.utils import pl.treksoft.kvision.types.toDateF import pl.treksoft.kvision.types.toStringF +import pl.treksoft.kvision.utils.toCamelCase import pl.treksoft.kvision.utils.toHexString import test.pl.treksoft.kvision.SimpleSpec import kotlin.js.Date @@ -72,4 +73,12 @@ class UtilsSpec : SimpleSpec { assertEquals("$y-$m2-$d2 $h2:$min2:$sec2", res, "Should convert Date value to String") } } + + @Test + fun toCamelCase() { + run { + val marginTop = "margin-top".toCamelCase() + assertEquals("marginTop", marginTop, "Should convert a kebab-case string to camelCase") + } + } } -- cgit