Skip to content

Commit 34883ce

Browse files
refactor(overmind-react): refactor tests to new api
1 parent b2f6610 commit 34883ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/node_modules/overmind-react/src/index.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('React', () => {
1212
},
1313
actions: {
1414
doThis: (action) =>
15-
action().do(() => {
15+
action.run(() => {
1616
didCallAction = true
1717
}),
1818
},
@@ -38,7 +38,7 @@ describe('React', () => {
3838
},
3939
actions: {
4040
doThis: (action) =>
41-
action().do(() => {
41+
action.run(() => {
4242
didCallAction = true
4343
}),
4444
},
@@ -64,7 +64,7 @@ describe('React', () => {
6464
foo: 'bar',
6565
},
6666
actions: {
67-
doThis: (action) => action().mutate((state) => (state.foo = 'bar2')),
67+
doThis: (action) => action.mutate((state) => (state.foo = 'bar2')),
6868
},
6969
})
7070
class Component extends React.Component<TConnect<typeof app>> {

0 commit comments

Comments
 (0)