From 1eab5af5c75ce1e4103379111322fc1a22263744 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 15 Nov 2022 11:50:04 +0100 Subject: [PATCH] Fixed shortUrlDeletion test --- test/short-urls/reducers/shortUrlDeletion.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/short-urls/reducers/shortUrlDeletion.test.ts b/test/short-urls/reducers/shortUrlDeletion.test.ts index 9a65734d..e6bd8162 100644 --- a/test/short-urls/reducers/shortUrlDeletion.test.ts +++ b/test/short-urls/reducers/shortUrlDeletion.test.ts @@ -43,8 +43,8 @@ describe('shortUrlDeletionReducer', () => { })); it('returns errorData on DELETE_SHORT_URL_ERROR', () => { - const errorData = Mock.of({ type: 'bar' }); - const error = { response: { data: errorData } }; + const errorData = Mock.of({ type: 'bar', detail: 'detail', title: 'title', status: 400 }); + const error = errorData; expect(reducer(undefined, { type: deleteShortUrl.rejected.toString(), error })).toEqual({ shortCode: '',