mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-12 10:33:49 +00:00
Removed test cases for the old default on reducers switch statements
This commit is contained in:
@@ -39,9 +39,6 @@ describe('shortUrlCreationReducer', () => {
|
||||
error: false,
|
||||
});
|
||||
});
|
||||
|
||||
it('returns provided state on unknown action', () =>
|
||||
expect(reducer({}, { type: 'unknown' })).toEqual({}));
|
||||
});
|
||||
|
||||
describe('resetCreateShortUrl', () => {
|
||||
|
||||
@@ -45,12 +45,6 @@ describe('shortUrlDeletionReducer', () => {
|
||||
errorData,
|
||||
});
|
||||
});
|
||||
|
||||
it('returns provided state as is on unknown action', () => {
|
||||
const state = { foo: 'bar' };
|
||||
|
||||
expect(reducer(state, { type: 'unknown' })).toEqual(state);
|
||||
});
|
||||
});
|
||||
|
||||
describe('resetDeleteShortUrl', () => {
|
||||
@@ -70,12 +70,6 @@ describe('shortUrlsListReducer', () => {
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it('returns provided state as is on unknown action', () => {
|
||||
const state = { foo: 'bar' };
|
||||
|
||||
expect(reducer(state, { type: 'unknown' })).toEqual(state);
|
||||
});
|
||||
});
|
||||
|
||||
describe('listShortUrls', () => {
|
||||
|
||||
@@ -8,9 +8,6 @@ describe('shortUrlsListParamsReducer', () => {
|
||||
describe('reducer', () => {
|
||||
const defaultState = { page: '1' };
|
||||
|
||||
it('returns default value when action is unknown', () =>
|
||||
expect(reducer(defaultState, { type: 'unknown' })).toEqual(defaultState));
|
||||
|
||||
it('returns params when action is LIST_SHORT_URLS', () =>
|
||||
expect(reducer(defaultState, { type: LIST_SHORT_URLS, params: { searchTerm: 'foo' } })).toEqual({
|
||||
...defaultState,
|
||||
|
||||
Reference in New Issue
Block a user