diff options
author | 2021-10-15 09:48:06 +0200 | |
---|---|---|
committer | 2021-10-15 09:48:06 +0200 | |
commit | 14d2364fc69e0222133115c55a36286986006098 (patch) | |
tree | 9e9b3c41ef742bbe87ca1632b292c67043051957 /src/features/utils/FeatureStore.test.js | |
parent | 5.6.3-nightly.34 [skip ci] (diff) | |
download | ferdium-app-14d2364fc69e0222133115c55a36286986006098.tar.gz ferdium-app-14d2364fc69e0222133115c55a36286986006098.tar.zst ferdium-app-14d2364fc69e0222133115c55a36286986006098.zip |
chore: update eslint setup (#2074)
Diffstat (limited to 'src/features/utils/FeatureStore.test.js')
-rw-r--r-- | src/features/utils/FeatureStore.test.js | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/features/utils/FeatureStore.test.js b/src/features/utils/FeatureStore.test.js index 92308bf52..1995431bd 100644 --- a/src/features/utils/FeatureStore.test.js +++ b/src/features/utils/FeatureStore.test.js | |||
@@ -5,9 +5,12 @@ import { createActionsFromDefinitions } from '../../actions/lib/actions'; | |||
5 | import { createActionBindings } from './ActionBinding'; | 5 | import { createActionBindings } from './ActionBinding'; |
6 | import { createReactions } from '../../stores/lib/Reaction'; | 6 | import { createReactions } from '../../stores/lib/Reaction'; |
7 | 7 | ||
8 | const actions = createActionsFromDefinitions({ | 8 | const actions = createActionsFromDefinitions( |
9 | countUp: {}, | 9 | { |
10 | }, PropTypes.checkPropTypes); | 10 | countUp: {}, |
11 | }, | ||
12 | PropTypes.checkPropTypes, | ||
13 | ); | ||
11 | 14 | ||
12 | class TestFeatureStore extends FeatureStore { | 15 | class TestFeatureStore extends FeatureStore { |
13 | @observable count = 0; | 16 | @observable count = 0; |
@@ -15,12 +18,10 @@ class TestFeatureStore extends FeatureStore { | |||
15 | reactionInvokedCount = 0; | 18 | reactionInvokedCount = 0; |
16 | 19 | ||
17 | start() { | 20 | start() { |
18 | this._registerActions(createActionBindings([ | 21 | this._registerActions( |
19 | [actions.countUp, this._countUp], | 22 | createActionBindings([[actions.countUp, this._countUp]]), |
20 | ])); | 23 | ); |
21 | this._registerReactions(createReactions([ | 24 | this._registerReactions(createReactions([this._countReaction])); |
22 | this._countReaction, | ||
23 | ])); | ||
24 | } | 25 | } |
25 | 26 | ||
26 | _countUp = () => { | 27 | _countUp = () => { |
@@ -29,7 +30,7 @@ class TestFeatureStore extends FeatureStore { | |||
29 | 30 | ||
30 | _countReaction = () => { | 31 | _countReaction = () => { |
31 | this.reactionInvokedCount += 1; | 32 | this.reactionInvokedCount += 1; |
32 | } | 33 | }; |
33 | } | 34 | } |
34 | 35 | ||
35 | describe('FeatureStore', () => { | 36 | describe('FeatureStore', () => { |