From 877cae1bf4bc3dc4c4784764d4381f5faec00715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 20 Jun 2022 11:19:09 +0200 Subject: [PATCH] Fix deleteStatus tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/actions/__tests__/statuses.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/soapbox/actions/__tests__/statuses.test.ts b/app/soapbox/actions/__tests__/statuses.test.ts index b00175401..b206f17b9 100644 --- a/app/soapbox/actions/__tests__/statuses.test.ts +++ b/app/soapbox/actions/__tests__/statuses.test.ts @@ -40,7 +40,7 @@ describe('deleteStatus()', () => { }); it('should do nothing', async() => { - await store.dispatch(deleteStatus('1', {})); + await store.dispatch(deleteStatus('1')); const actions = store.getActions(); expect(actions).toEqual([]); @@ -88,7 +88,7 @@ describe('deleteStatus()', () => { reblogOf: null, }, ]; - await store.dispatch(deleteStatus(statusId, {})); + await store.dispatch(deleteStatus(statusId)); const actions = store.getActions(); expect(actions).toEqual(expectedActions); @@ -125,7 +125,7 @@ describe('deleteStatus()', () => { }, { type: 'MODAL_OPEN', modalType: 'COMPOSE', modalProps: undefined }, ]; - await store.dispatch(deleteStatus(statusId, {}, true)); + await store.dispatch(deleteStatus(statusId, true)); const actions = store.getActions(); expect(actions).toEqual(expectedActions); @@ -151,7 +151,7 @@ describe('deleteStatus()', () => { error: new Error('Network Error'), }, ]; - await store.dispatch(deleteStatus(statusId, {}, true)); + await store.dispatch(deleteStatus(statusId, true)); const actions = store.getActions(); expect(actions).toEqual(expectedActions);