mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-14 11:33:51 +00:00
Removed test cases for the old default on reducers switch statements
This commit is contained in:
@@ -32,17 +32,6 @@ describe('shortUrlDetailReducer', () => {
|
||||
expect(error).toEqual(false);
|
||||
expect(shortUrl).toEqual(actionShortUrl);
|
||||
});
|
||||
|
||||
it('returns default state on unknown action', () => {
|
||||
const defaultState = {
|
||||
shortUrl: {},
|
||||
loading: false,
|
||||
error: false,
|
||||
};
|
||||
const state = reducer(defaultState, { type: 'unknown' });
|
||||
|
||||
expect(state).toEqual(defaultState);
|
||||
});
|
||||
});
|
||||
|
||||
describe('getShortUrlDetail', () => {
|
||||
|
||||
@@ -49,17 +49,6 @@ describe('shortUrlVisitsReducer', () => {
|
||||
expect(error).toEqual(false);
|
||||
expect(visits).toEqual(actionVisits);
|
||||
});
|
||||
|
||||
it('returns default state on unknown action', () => {
|
||||
const defaultState = {
|
||||
visits: [],
|
||||
loading: false,
|
||||
error: false,
|
||||
};
|
||||
const state = reducer(defaultState, { type: 'unknown' });
|
||||
|
||||
expect(state).toEqual(defaultState);
|
||||
});
|
||||
});
|
||||
|
||||
describe('getShortUrlVisits', () => {
|
||||
|
||||
Reference in New Issue
Block a user