Moves DraftAttachments into redux

This commit is contained in:
Josh Perez 2021-09-24 16:02:30 -04:00 committed by Josh Perez
parent f81f61af4e
commit 1c3c971cf4
20 changed files with 818 additions and 444 deletions

View file

@ -39,7 +39,9 @@ describe('both/state/ducks/composer', () => {
const { replaceAttachments } = actions;
const dispatch = sinon.spy();
const attachments: Array<AttachmentType> = [{ contentType: IMAGE_JPEG }];
const attachments: Array<AttachmentType> = [
{ contentType: IMAGE_JPEG, pending: false, url: '' },
];
replaceAttachments('123', attachments)(
dispatch,
getRootStateFunction('123'),