aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-09-01 16:18:24 +0200
committerRobert Jaros <rjaros@finn.pl>2017-09-01 16:18:24 +0200
commit0407e661dced3adcf8386b27738295e285a043a0 (patch)
treedc9a0f11a20807d5584bff61afded2868bb5b06e /src/test
parent5ad14edfbce5128fe6d8b09a52df5dac820ce14e (diff)
downloadkvision-0407e661dced3adcf8386b27738295e285a043a0.tar.gz
kvision-0407e661dced3adcf8386b27738295e285a043a0.tar.bz2
kvision-0407e661dced3adcf8386b27738295e285a043a0.zip
Remove warnings
Diffstat (limited to 'src/test')
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt10
1 files changed, 5 insertions, 5 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 214ee1f5..183fa9fa 100644
--- a/src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt
+++ b/src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt
@@ -9,7 +9,7 @@ class WidgetSpec : WSpec {
@Test
fun render() {
- runW { widget, element ->
+ runW { widget, _ ->
widget.addCssClass("testClass")
widget.title = "test_title"
val vnode = widget.render()
@@ -33,7 +33,7 @@ class WidgetSpec : WSpec {
@Test
fun hide() {
- runW { widget, element ->
+ runW { widget, _ ->
widget.hide()
val element = document.getElementById("test_id")
assertTrue("Hidden element should not be accessible") { element == null }
@@ -42,7 +42,7 @@ class WidgetSpec : WSpec {
@Test
fun show() {
- runW { widget, element ->
+ runW { widget, _ ->
widget.hide()
widget.show()
val element = document.getElementById("test_id")
@@ -71,7 +71,7 @@ class WidgetSpec : WSpec {
@Test
fun setEventListener() {
- runW { widget, element ->
+ runW { widget, _ ->
widget.setEventListener { click = { _ -> } }
assertTrue("Element should have an event listener") { widget.listeners.size == 1 }
}
@@ -79,7 +79,7 @@ class WidgetSpec : WSpec {
@Test
fun removeEventListener() {
- runW { widget, element ->
+ runW { widget, _ ->
widget.setEventListener { click = { _ -> } }
widget.removeEventListeners()
assertTrue("Element should not have any event listener") { widget.listeners.size == 0 }