File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/node_modules/overmind/src Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments