aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-01-23 11:00:00 +0100
committerRobert Jaros <rjaros@finn.pl>2019-01-23 11:00:00 +0100
commit48153da7cd97c57a60ca1032d19cdec0714c4c04 (patch)
tree45ab0bcf19bcb0ad205ad4422d10d5be75f10407 /src/test
parent6c8d768508142c8a6a672b94311c8e9257f15735 (diff)
downloadkvision-48153da7cd97c57a60ca1032d19cdec0714c4c04.tar.gz
kvision-48153da7cd97c57a60ca1032d19cdec0714c4c04.tar.bz2
kvision-48153da7cd97c57a60ca1032d19cdec0714c4c04.zip
Data container enhancements and fixes.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt3
1 files changed, 2 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 2cf3160d..931294d5 100644
--- a/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt
+++ b/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt
@@ -26,6 +26,7 @@ import pl.treksoft.kvision.data.BaseDataComponent
import pl.treksoft.kvision.data.DataContainer
import pl.treksoft.kvision.html.Label
import pl.treksoft.kvision.panel.Root
+import pl.treksoft.kvision.panel.VPanel
import test.pl.treksoft.kvision.DomSpec
import kotlin.browser.document
import kotlin.test.Test
@@ -42,7 +43,7 @@ class DataContainerSpec : DomSpec {
}
val model = observableListOf(Model("First"), Model("Second"))
- val container = DataContainer(model, { m, _, _ -> Label(m.value) })
+ val container = DataContainer(model, { m, _, _ -> Label(m.value) }, VPanel())
root.add(container)
val element = document.getElementById("test")
assertEqualsHtml(