aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-04-16 13:42:14 +0200
committerLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-04-16 13:42:14 +0200
commit22edf5ac8f3c15e843de172a3bba50f308371a00 (patch)
tree6db05eb8c894c88e1892691ce17f1f0dbf6f7778 /src
parentmanage translations (diff)
downloadferdium-app-22edf5ac8f3c15e843de172a3bba50f308371a00.tar.gz
ferdium-app-22edf5ac8f3c15e843de172a3bba50f308371a00.tar.zst
ferdium-app-22edf5ac8f3c15e843de172a3bba50f308371a00.zip
fix feature store test
Diffstat (limited to 'src')
-rw-r--r--src/features/utils/FeatureStore.test.js10
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';
2import { observable } from 'mobx'; 2import { observable } from 'mobx';
3import { FeatureStore } from './FeatureStore'; 3import { FeatureStore } from './FeatureStore';
4import { createActionsFromDefinitions } from '../../actions/lib/actions'; 4import { createActionsFromDefinitions } from '../../actions/lib/actions';
5import { createActionBindings } from './ActionBinding';
6import { createReactions } from '../../stores/lib/Reaction';
5 7
6const actions = createActionsFromDefinitions({ 8const 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 = () => {