aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-01-09 12:19:18 +0100
committerRobert Jaros <rjaros@finn.pl>2019-01-09 12:19:18 +0100
commitec61850780cac4e84826aca95a14d8010813b13a (patch)
tree78a7c7f4e8ee041255b29093707537a5faf27218 /src
parentd74b2813ac456ce3a69ba2afc2f8409f30c92cda (diff)
downloadkvision-ec61850780cac4e84826aca95a14d8010813b13a.tar.gz
kvision-ec61850780cac4e84826aca95a14d8010813b13a.tar.bz2
kvision-ec61850780cac4e84826aca95a14d8010813b13a.zip
Dependencies upgrade.
Diffstat (limited to 'src')
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt6
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index 1da1fe1a..9d86766c 100644
--- a/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -62,13 +62,13 @@ interface DomSpec : TestSpec {
override fun afterTest() {
val div = document.getElementById("pretest")
div?.let { jQuery(it).remove() }
- jQuery(`object` = ".modal-backdrop").remove()
+ jQuery(".modal-backdrop").remove()
}
fun assertEqualsHtml(expected: String?, actual: String?, message: String?) {
if (expected != null && actual != null) {
- val exp = jQuery(html = expected)
- val act = jQuery(html = actual)
+ val exp = jQuery(expected)
+ val act = jQuery(actual)
val result = exp[0]?.isEqualNode(act[0])
if (result == true) {
assertTrue(result == true, message)
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt
index a68011d1..fc1cc761 100644
--- a/src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt
+++ b/src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt
@@ -95,7 +95,7 @@ class WidgetSpec : WSpec {
@Test
fun setEventListener() {
runW { widget, _ ->
- widget.setEventListener { click = { _ -> } }
+ widget.setEventListener { click = { } }
assertTrue("Element should have an event listener") { widget.listeners.size == 1 }
}
}
@@ -103,7 +103,7 @@ class WidgetSpec : WSpec {
@Test
fun removeEventListener() {
runW { widget, _ ->
- widget.setEventListener { click = { _ -> } }
+ widget.setEventListener { click = { } }
widget.removeEventListeners()
assertTrue("Element should not have any event listener") { widget.listeners.size == 0 }
}