aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-03-07 00:09:02 +0100
committerRobert Jaros <rjaros@finn.pl>2018-03-07 00:09:02 +0100
commit32ddb5789a4f9b644836d3a0cc2f9b14b37b5e5b (patch)
treeb0ef6f63b0b0244432f68e026f36b053879d91dd /src/test/kotlin
parentc87e1851919c60d57aeb77809a94f589d537f827 (diff)
downloadkvision-32ddb5789a4f9b644836d3a0cc2f9b14b37b5e5b.tar.gz
kvision-32ddb5789a4f9b644836d3a0cc2f9b14b37b5e5b.tar.bz2
kvision-32ddb5789a4f9b644836d3a0cc2f9b14b37b5e5b.zip
Add model parameter to DataContainer callback functions.
Diffstat (limited to 'src/test/kotlin')
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt
index 809f5880..9e5c769f 100644
--- a/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt
+++ b/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt
@@ -42,7 +42,7 @@ class DataContainerSpec : DomSpec {
}
val model = observableListOf(Model("First"), Model("Second"))
- val container = DataContainer(model, { index -> Label(model[index].value) })
+ val container = DataContainer(model, { _, m -> Label(m.value) })
root.add(container)
val element = document.getElementById("test")
assertEqualsHtml(