Skip to content

Commit 9e43b1b

Browse files
committed
fix: broken tests
1 parent 36052b2 commit 9e43b1b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package/src/components/Attachment/__tests__/Attachment.test.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
} from '../../../mock-builders/generator/attachment';
1515
import { generateMessage } from '../../../mock-builders/generator/message';
1616

17+
import { PendingAttachmentsUploadingStateStore } from '../../../state-store/pending-attachments-uploading-state';
1718
import { ImageLoadingFailedIndicator } from '../../Attachment/ImageLoadingFailedIndicator';
1819
import { ImageLoadingIndicator } from '../../Attachment/ImageLoadingIndicator';
1920
import { Attachment } from '../Attachment';
@@ -24,10 +25,17 @@ jest.mock('../../../native.ts', () => ({
2425
}));
2526

2627
const getAttachmentComponent = (props) => {
28+
const pendingAttachmentsUploadingStore = new PendingAttachmentsUploadingStateStore();
2729
const message = generateMessage();
2830
return (
2931
<ThemeProvider>
30-
<MessagesProvider value={{ ImageLoadingFailedIndicator, ImageLoadingIndicator }}>
32+
<MessagesProvider
33+
value={{
34+
ImageLoadingFailedIndicator,
35+
ImageLoadingIndicator,
36+
pendingAttachmentsUploadingStore,
37+
}}
38+
>
3139
<MessageProvider value={{ message }}>
3240
<Attachment {...props} />
3341
</MessageProvider>

0 commit comments

Comments
 (0)