Skip to content

Commit ab689f6

Browse files
test(overmind): fix wrong test
1 parent f87153a commit ab689f6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/node_modules/overmind/src/index.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ describe('Overmind', () => {
146146
operatorId: 0,
147147
path: [],
148148
type: 'action',
149+
value: {},
149150
})
150151
})
151152
app.eventHub.once(EventType.ACTION_END, (data) => {
@@ -338,11 +339,13 @@ describe('Overmind mock', () => {
338339
expect.assertions(1)
339340
const state = {
340341
value: 0,
341-
get valuePlusTwo() { return this.value + 2 }
342+
get valuePlusTwo() {
343+
return this.value + 2
344+
},
342345
}
343-
const updateValue: Action = (context) => context.state.value = 15
346+
const updateValue: Action = (context) => (context.state.value = 15)
344347
const actions = { updateValue }
345-
const config = { state, actions}
348+
const config = { state, actions }
346349
type Config = typeof config
347350
interface Action<Value = void> extends IAction<Config, Value> {}
348351

0 commit comments

Comments
 (0)