Skip to content

Commit 4b91160

Browse files
committed
fix: broken tests due to 0.79 merge
1 parent 06f09a4 commit 4b91160

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreview.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Chat } from '../../Chat/Chat';
1212
import { FileUploadPreview } from '../FileUploadPreview';
1313

1414
jest.mock('../../../native.ts', () => {
15-
const View = require('react-native/Libraries/Components/View/View');
15+
const View = require('react-native').View;
1616

1717
return {
1818
isAudioRecorderAvailable: jest.fn(() => true),

package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type { FileUpload } from '../../../types/types';
1414
import { AudioAttachment, AudioAttachmentProps } from '../../Attachment/AudioAttachment';
1515

1616
jest.mock('../../../native.ts', () => {
17-
const View = require('react-native/Libraries/Components/View/View');
17+
const View = require('react-native').View;
1818

1919
return {
2020
isSoundPackageAvailable: jest.fn(() => true),

0 commit comments

Comments
 (0)