aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/kotlin')
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt4
1 files changed, 2 insertions, 2 deletions
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 6b9be23d..59f5f8e0 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<Widget> { 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<Widget> { click = { } }
widget.removeEventListeners()
assertTrue("Element should not have any event listener") { widget.listeners.size == 0 }
}