Fixed warnings in tests

This commit is contained in:
Alejandro Celaya 2019-10-05 19:13:57 +02:00
parent 923cc3ba01
commit 5a37787042
2 changed files with 9 additions and 6 deletions

View file

@ -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();

View file

@ -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();