File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
package/src/components/Attachment/__tests__ Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
1414} from '../../../mock-builders/generator/attachment' ;
1515import { generateMessage } from '../../../mock-builders/generator/message' ;
1616
17+ import { PendingAttachmentsUploadingStateStore } from '../../../state-store/pending-attachments-uploading-state' ;
1718import { ImageLoadingFailedIndicator } from '../../Attachment/ImageLoadingFailedIndicator' ;
1819import { ImageLoadingIndicator } from '../../Attachment/ImageLoadingIndicator' ;
1920import { Attachment } from '../Attachment' ;
@@ -24,10 +25,17 @@ jest.mock('../../../native.ts', () => ({
2425} ) ) ;
2526
2627const 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 >
You can’t perform that action at this time.
0 commit comments