aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-redux-kotlin/src/test
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-10-13 00:04:39 +0200
committerRobert Jaros <rjaros@finn.pl>2019-10-13 00:04:39 +0200
commit32551e8918b22762c067a895382a4faee53b9003 (patch)
treee0722fdd5a6c01079cfbf22ccba38a3e21a779b9 /kvision-modules/kvision-redux-kotlin/src/test
parent6ea600defefbe16e59c421785d9a09989e672083 (diff)
downloadkvision-32551e8918b22762c067a895382a4faee53b9003.tar.gz
kvision-32551e8918b22762c067a895382a4faee53b9003.tar.bz2
kvision-32551e8918b22762c067a895382a4faee53b9003.zip
Refactor StateBinding class with ObservableState interface.
Diffstat (limited to 'kvision-modules/kvision-redux-kotlin/src/test')
-rw-r--r--kvision-modules/kvision-redux-kotlin/src/test/kotlin/test/pl/treksoft/kvision/redux/ReduxStoreSpec.kt2
-rw-r--r--kvision-modules/kvision-redux-kotlin/src/test/kotlin/test/pl/treksoft/kvision/redux/StateBindingSpec.kt4
2 files changed, 3 insertions, 3 deletions
diff --git a/kvision-modules/kvision-redux-kotlin/src/test/kotlin/test/pl/treksoft/kvision/redux/ReduxStoreSpec.kt b/kvision-modules/kvision-redux-kotlin/src/test/kotlin/test/pl/treksoft/kvision/redux/ReduxStoreSpec.kt
index a518d0ca..56195ca8 100644
--- a/kvision-modules/kvision-redux-kotlin/src/test/kotlin/test/pl/treksoft/kvision/redux/ReduxStoreSpec.kt
+++ b/kvision-modules/kvision-redux-kotlin/src/test/kotlin/test/pl/treksoft/kvision/redux/ReduxStoreSpec.kt
@@ -76,7 +76,7 @@ class ReduxStoreSpec : SimpleSpec {
}
store.dispatch(TestAction.Inc)
store.dispatch(TestAction.Dec)
- assertEquals(2, counter)
+ assertEquals(3, counter)
}
}
}
diff --git a/kvision-modules/kvision-redux-kotlin/src/test/kotlin/test/pl/treksoft/kvision/redux/StateBindingSpec.kt b/kvision-modules/kvision-redux-kotlin/src/test/kotlin/test/pl/treksoft/kvision/redux/StateBindingSpec.kt
index 61845c6e..dee4daa9 100644
--- a/kvision-modules/kvision-redux-kotlin/src/test/kotlin/test/pl/treksoft/kvision/redux/StateBindingSpec.kt
+++ b/kvision-modules/kvision-redux-kotlin/src/test/kotlin/test/pl/treksoft/kvision/redux/StateBindingSpec.kt
@@ -25,8 +25,8 @@ import pl.treksoft.kvision.html.Div.Companion.div
import pl.treksoft.kvision.panel.Root
import pl.treksoft.kvision.panel.SimplePanel
import pl.treksoft.kvision.redux.RAction
-import pl.treksoft.kvision.redux.StateBinding.Companion.stateBinding
-import pl.treksoft.kvision.redux.StateBinding.Companion.stateUpdate
+import pl.treksoft.kvision.state.StateBinding.Companion.stateBinding
+import pl.treksoft.kvision.state.StateBinding.Companion.stateUpdate
import pl.treksoft.kvision.redux.createReduxStore
import test.pl.treksoft.kvision.DomSpec
import kotlin.browser.document