mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-10 18:27:25 +03:00
Fixed shortUrlDeletion test
This commit is contained in:
parent
3df0bf79f8
commit
1eab5af5c7
1 changed files with 2 additions and 2 deletions
|
@ -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: '',
|
||||
|
|
Loading…
Reference in a new issue