We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4b5894 commit 219ce8cCopy full SHA for 219ce8c
packages/node_modules/overmind/src/config/config.test.ts
@@ -41,6 +41,11 @@ describe('Config', () => {
41
state: {
42
foo: 'bar',
43
},
44
+ actions: {
45
+ returnStateFromB({ state }) {
46
+ return state.configB.bar
47
+ },
48
49
})
50
const configB = () =>
51
Promise.resolve({
@@ -68,6 +73,8 @@ describe('Config', () => {
68
73
expect(app.state.configA.foo).toEqual('bar')
69
74
// @ts-ignore
70
75
expect(app.state.configB.bar).toEqual('baz')
76
+ // @ts-ignore
77
+ expect(app.actions.configA.returnStateFromB()).toEqual('baz')
71
78
72
79
80
0 commit comments