diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/utils/UtilsSpec.kt | 9 |
1 files changed, 9 insertions, 0 deletions
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") + } + } } |