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