Skip to content

Commit 2a8aac3

Browse files
committed
tests: add tests setup
1 parent fb0187a commit 2a8aac3

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

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

Whitespace-only changes.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from 'react';
2+
3+
import { act, render, screen, userEvent, waitFor } from '@testing-library/react-native';
4+
5+
import { OverlayProvider } from '../../../contexts';
6+
7+
import { initiateClientWithChannels } from '../../../mock-builders/api/initiateClientWithChannels';
8+
import { Channel } from '../../Channel/Channel';
9+
import { Chat } from '../../Chat/Chat';
10+
import { SendButton } from '../SendButton';
11+
12+
const renderComponent = ({ client, channel, props }) => {
13+
return render(
14+
<OverlayProvider>
15+
<Chat client={client}>
16+
<Channel channel={channel}>
17+
<SendButton {...props} />
18+
</Channel>
19+
</Chat>
20+
</OverlayProvider>,
21+
);
22+
};

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

Whitespace-only changes.

0 commit comments

Comments
 (0)