mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-19 04:56:17 +00:00
Added real time updates to tags list page
This commit is contained in:
@@ -15,7 +15,7 @@ describe('<TagsList />', () => {
|
||||
const TagsList = createTagsList(TagCard);
|
||||
|
||||
wrapper = shallow(
|
||||
<TagsList forceListTags={identity} filterTags={filterTags} match={{ params }} tagsList={tagsList} />
|
||||
<TagsList forceListTags={identity} filterTags={filterTags} match={{ params }} tagsList={tagsList} settings={{}} />
|
||||
);
|
||||
|
||||
return wrapper;
|
||||
|
||||
@@ -11,17 +11,17 @@ import { TAG_EDITED } from '../../../src/tags/reducers/tagEdit';
|
||||
describe('tagsListReducer', () => {
|
||||
describe('reducer', () => {
|
||||
it('returns loading on LIST_TAGS_START', () => {
|
||||
expect(reducer({}, { type: LIST_TAGS_START })).toEqual({
|
||||
expect(reducer({}, { type: LIST_TAGS_START })).toEqual(expect.objectContaining({
|
||||
loading: true,
|
||||
error: false,
|
||||
});
|
||||
}));
|
||||
});
|
||||
|
||||
it('returns error on LIST_TAGS_ERROR', () => {
|
||||
expect(reducer({}, { type: LIST_TAGS_ERROR })).toEqual({
|
||||
expect(reducer({}, { type: LIST_TAGS_ERROR })).toEqual(expect.objectContaining({
|
||||
loading: false,
|
||||
error: true,
|
||||
});
|
||||
}));
|
||||
});
|
||||
|
||||
it('returns provided tags as filtered and regular tags on LIST_TAGS', () => {
|
||||
|
||||
Reference in New Issue
Block a user