(name, size, type = 'text/plain')
| 154 | |
| 155 | describe('File attachment handling', () => { |
| 156 | const createMockFile = (name, size, type = 'text/plain') => { |
| 157 | const content = 'x'.repeat(size); |
| 158 | return new File([content], name, {type}); |
| 159 | }; |
| 160 | |
| 161 | it('should add files to state when attachments are added', async () => { |
| 162 | const {ref} = setup(); |