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: '',