Helper to get only image attachments from the unified pendingAttachments array
()
| 11 | |
| 12 | /** Helper to get only image attachments from the unified pendingAttachments array */ |
| 13 | function getPendingImages(): PendingImageAttachment[] { |
| 14 | return useChatStore |
| 15 | .getState() |
| 16 | .pendingAttachments.filter( |
| 17 | (att): att is PendingImageAttachment => att.kind === 'image', |
| 18 | ) |
| 19 | } |
| 20 | |
| 21 | describe('pending-attachments', () => { |
| 22 | beforeEach(() => { |
no outgoing calls
no test coverage detected