(overrides: Partial<QueuedAttachment> = {})
| 11 | } from './use-attachment-queue'; |
| 12 | |
| 13 | function row(overrides: Partial<QueuedAttachment> = {}): QueuedAttachment { |
| 14 | return { |
| 15 | tempId: 'tmp-1', |
| 16 | filename: 'a.png', |
| 17 | mimeType: 'image/png', |
| 18 | size: 100, |
| 19 | status: 'uploading', |
| 20 | progress: 0, |
| 21 | attachmentId: undefined, |
| 22 | error: undefined, |
| 23 | ...overrides, |
| 24 | }; |
| 25 | } |
| 26 | |
| 27 | function state(rows: QueuedAttachment[]): AttachmentQueueState { |
| 28 | return { rows }; |
no outgoing calls
no test coverage detected