diff options
author | 2019-04-16 13:42:14 +0200 | |
---|---|---|
committer | 2019-04-16 13:42:14 +0200 | |
commit | 22edf5ac8f3c15e843de172a3bba50f308371a00 (patch) | |
tree | 6db05eb8c894c88e1892691ce17f1f0dbf6f7778 /src/features | |
parent | manage translations (diff) | |
download | ferdium-app-22edf5ac8f3c15e843de172a3bba50f308371a00.tar.gz ferdium-app-22edf5ac8f3c15e843de172a3bba50f308371a00.tar.zst ferdium-app-22edf5ac8f3c15e843de172a3bba50f308371a00.zip |
fix feature store test
Diffstat (limited to 'src/features')
-rw-r--r-- | src/features/utils/FeatureStore.test.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/features/utils/FeatureStore.test.js b/src/features/utils/FeatureStore.test.js index b618b0a14..92308bf52 100644 --- a/src/features/utils/FeatureStore.test.js +++ b/src/features/utils/FeatureStore.test.js | |||
@@ -2,6 +2,8 @@ import PropTypes from 'prop-types'; | |||
2 | import { observable } from 'mobx'; | 2 | import { observable } from 'mobx'; |
3 | import { FeatureStore } from './FeatureStore'; | 3 | import { FeatureStore } from './FeatureStore'; |
4 | import { createActionsFromDefinitions } from '../../actions/lib/actions'; | 4 | import { createActionsFromDefinitions } from '../../actions/lib/actions'; |
5 | import { createActionBindings } from './ActionBinding'; | ||
6 | import { createReactions } from '../../stores/lib/Reaction'; | ||
5 | 7 | ||
6 | const actions = createActionsFromDefinitions({ | 8 | const actions = createActionsFromDefinitions({ |
7 | countUp: {}, | 9 | countUp: {}, |
@@ -13,12 +15,12 @@ class TestFeatureStore extends FeatureStore { | |||
13 | reactionInvokedCount = 0; | 15 | reactionInvokedCount = 0; |
14 | 16 | ||
15 | start() { | 17 | start() { |
16 | this._registerActions([ | 18 | this._registerActions(createActionBindings([ |
17 | [actions.countUp, this._countUp], | 19 | [actions.countUp, this._countUp], |
18 | ]); | 20 | ])); |
19 | this._registerReactions([ | 21 | this._registerReactions(createReactions([ |
20 | this._countReaction, | 22 | this._countReaction, |
21 | ]); | 23 | ])); |
22 | } | 24 | } |
23 | 25 | ||
24 | _countUp = () => { | 26 | _countUp = () => { |