mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-12 02:23:49 +00:00
Fixed shortUrlDeletion test
This commit is contained in:
@@ -43,8 +43,8 @@ describe('shortUrlDeletionReducer', () => {
|
||||
}));
|
||||
|
||||
it('returns errorData on DELETE_SHORT_URL_ERROR', () => {
|
||||
const errorData = Mock.of<ProblemDetailsError>({ type: 'bar' });
|
||||
const error = { response: { data: errorData } };
|
||||
const errorData = Mock.of<ProblemDetailsError>({ type: 'bar', detail: 'detail', title: 'title', status: 400 });
|
||||
const error = errorData;
|
||||
|
||||
expect(reducer(undefined, { type: deleteShortUrl.rejected.toString(), error })).toEqual({
|
||||
shortCode: '',
|
||||
|
||||
Reference in New Issue
Block a user