Skip to content

Commit b184505

Browse files
feat(overmind): rename createMock to createOvermindMock
BREAKING CHANGE: createMock is now named createOvermindMock
1 parent 248d596 commit b184505

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function deepCopy(obj) {
7171
return obj
7272
}
7373

74-
export function createMock<Config extends Configuration>(
74+
export function createOvermindMock<Config extends Configuration>(
7575
config: Config,
7676
mockedEffects?: NestedPartial<Config['effects']>
7777
): {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createMock, IAction } from './'
1+
import { createOvermindMock, IAction } from './'
22

33
type State = {
44
foo: string
@@ -29,13 +29,13 @@ describe('Mock', () => {
2929

3030
interface Action<Input = void> extends IAction<Config, Input> {}
3131

32-
const mock = createMock(config, {
32+
const overmind = createOvermindMock(config, {
3333
effect() {
3434
return 'bar3'
3535
},
3636
})
3737

38-
return mock.actions.test().then((result) =>
38+
return overmind.actions.test().then((result) =>
3939
expect(result).toEqual([
4040
{
4141
method: 'set',

0 commit comments

Comments
 (0)