aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-01-29 20:55:02 +0100
committerRobert Jaros <rjaros@finn.pl>2018-01-29 20:55:02 +0100
commit9a70dcb74707dac6d7e88d9b75ddf36b17fd5632 (patch)
treedbe004b29cfb765bb73afe4ab6e48734d30de4af /src/test/kotlin
parentdb611775f3fbf14c3860973795768a722d501d48 (diff)
downloadkvision-9a70dcb74707dac6d7e88d9b75ddf36b17fd5632.tar.gz
kvision-9a70dcb74707dac6d7e88d9b75ddf36b17fd5632.tar.bz2
kvision-9a70dcb74707dac6d7e88d9b75ddf36b17fd5632.zip
Simplified data container
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 30cf0db9..b4b1122f 100644
--- a/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt
+++ b/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt
@@ -22,7 +22,7 @@ class DataContainerSpec : DomSpec {
}
val model = observableListOf(Model("First"), Model("Second"))
- val container = DataContainer(model, { element, _ -> Label(element.value) })
+ val container = DataContainer(model, { index -> Label(model[index].value) })
root.add(container)
val element = document.getElementById("test")
assertEquals(