diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-05-20 15:13:08 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-05-20 15:15:16 +0200 |
commit | 5e25011690115a6787232c47c1d8558d1af82426 (patch) | |
tree | 1c2a244fcde7b604cde3f069ae7fa0afa31da70e /src/test | |
parent | 6c1c0e7bb02843a8088a011dbfb224605c201dd7 (diff) | |
download | kvision-5e25011690115a6787232c47c1d8558d1af82426.tar.gz kvision-5e25011690115a6787232c47c1d8558d1af82426.tar.bz2 kvision-5e25011690115a6787232c47c1d8558d1af82426.zip |
Support for jQuery animations (#154)
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") + } + } } |