mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-03 23:07:26 +03:00
Fixed warnings in tests
This commit is contained in:
parent
923cc3ba01
commit
5a37787042
2 changed files with 9 additions and 6 deletions
|
@ -46,15 +46,17 @@ describe('shortUrlTagsReducer', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('resetShortUrlsTags', () =>
|
describe('resetShortUrlsTags', () => {
|
||||||
it('creates expected action', () => expect(resetShortUrlsTags()).toEqual({ type: RESET_EDIT_SHORT_URL_TAGS })));
|
it('creates expected action', () => expect(resetShortUrlsTags()).toEqual({ type: RESET_EDIT_SHORT_URL_TAGS }));
|
||||||
|
});
|
||||||
|
|
||||||
describe('shortUrlTagsEdited', () =>
|
describe('shortUrlTagsEdited', () => {
|
||||||
it('creates expected action', () => expect(shortUrlTagsEdited(shortCode, tags)).toEqual({
|
it('creates expected action', () => expect(shortUrlTagsEdited(shortCode, tags)).toEqual({
|
||||||
tags,
|
tags,
|
||||||
shortCode,
|
shortCode,
|
||||||
type: SHORT_URL_TAGS_EDITED,
|
type: SHORT_URL_TAGS_EDITED,
|
||||||
})));
|
}));
|
||||||
|
});
|
||||||
|
|
||||||
describe('editShortUrlTags', () => {
|
describe('editShortUrlTags', () => {
|
||||||
const updateShortUrlTags = jest.fn();
|
const updateShortUrlTags = jest.fn();
|
||||||
|
|
|
@ -70,8 +70,9 @@ describe('tagsListReducer', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('filterTags', () =>
|
describe('filterTags', () => {
|
||||||
it('creates expected action', () => expect(filterTags('foo')).toEqual({ type: FILTER_TAGS, searchTerm: 'foo' })));
|
it('creates expected action', () => expect(filterTags('foo')).toEqual({ type: FILTER_TAGS, searchTerm: 'foo' }));
|
||||||
|
});
|
||||||
|
|
||||||
describe('listTags', () => {
|
describe('listTags', () => {
|
||||||
const dispatch = jest.fn();
|
const dispatch = jest.fn();
|
||||||
|
|
Loading…
Reference in a new issue