diff options
author | Robert Jaros <rjaros@finn.pl> | 2017-09-01 16:18:24 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2017-09-01 16:18:24 +0200 |
commit | 0407e661dced3adcf8386b27738295e285a043a0 (patch) | |
tree | dc9a0f11a20807d5584bff61afded2868bb5b06e /src | |
parent | 5ad14edfbce5128fe6d8b09a52df5dac820ce14e (diff) | |
download | kvision-0407e661dced3adcf8386b27738295e285a043a0.tar.gz kvision-0407e661dced3adcf8386b27738295e285a043a0.tar.bz2 kvision-0407e661dced3adcf8386b27738295e285a043a0.zip |
Remove warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt | 10 |
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 } |