diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-01-21 12:41:10 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-01-21 12:41:10 +0100 |
commit | 6c8d768508142c8a6a672b94311c8e9257f15735 (patch) | |
tree | bca4f49e401c6a2c5a9b70297da874e6fd21af28 /src/test | |
parent | 07f9472afaffb3d6187d15eb13368f3b8f3b1b7b (diff) | |
download | kvision-6c8d768508142c8a6a672b94311c8e9257f15735.tar.gz kvision-6c8d768508142c8a6a672b94311c8e9257f15735.tar.bz2 kvision-6c8d768508142c8a6a672b94311c8e9257f15735.zip |
Removed mapping function from DataContainer class. Add sorter and sorterType functions instead.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt | 2 |
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 3f07626d..2cf3160d 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, { _, m -> Label(m.value) }) + val container = DataContainer(model, { m, _, _ -> Label(m.value) }) root.add(container) val element = document.getElementById("test") assertEqualsHtml( |