Skip to content

Commit a5f9ddb

Browse files
Copilotcardoso
andcommitted
Update tinykeys mocks in tests to use named export
Co-authored-by: cardoso <5606812+cardoso@users.noreply.github.com>
1 parent c0efeef commit a5f9ddb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/meteor/client/views/omnichannel/components/outboundMessage/components/OutboundMessageWizard/OutboundMessageWizard.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ useOutboundMessageUpsellModal;
2121

2222
jest.mock('tinykeys', () => ({
2323
__esModule: true,
24-
default: jest.fn().mockReturnValue(() => () => undefined),
24+
tinykeys: jest.fn().mockReturnValue(() => () => undefined),
2525
}));
2626

2727
jest.mock('../../../../../../../app/utils/client', () => ({

apps/meteor/client/views/omnichannel/components/outboundMessage/components/OutboundMessageWizard/steps/MessageStep.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const testCases = Object.values(composeStories(stories)).map((Story) => [Story.s
1818

1919
jest.mock('tinykeys', () => ({
2020
__esModule: true,
21-
default: jest.fn().mockReturnValue(() => () => undefined),
21+
tinykeys: jest.fn().mockReturnValue(() => () => undefined),
2222
}));
2323

2424
let isSubmitting = false;

apps/meteor/client/views/omnichannel/components/outboundMessage/components/OutboundMessageWizard/steps/RecipientStep.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const testCases = Object.values(composeStories(stories)).map((Story) => [Story.s
1818

1919
jest.mock('tinykeys', () => ({
2020
__esModule: true,
21-
default: jest.fn().mockReturnValue(() => () => undefined),
21+
tinykeys: jest.fn().mockReturnValue(() => () => undefined),
2222
}));
2323

2424
let isSubmitting = false;

0 commit comments

Comments
 (0)