mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-14 11:33:51 +00:00
Added missing test for new action creator
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import * as sinon from 'sinon';
|
import * as sinon from 'sinon';
|
||||||
import reducer, {
|
import reducer, {
|
||||||
getShortUrlVisits,
|
getShortUrlVisits,
|
||||||
|
cancelGetShortUrlVisits,
|
||||||
GET_SHORT_URL_VISITS_START,
|
GET_SHORT_URL_VISITS_START,
|
||||||
GET_SHORT_URL_VISITS_ERROR,
|
GET_SHORT_URL_VISITS_ERROR,
|
||||||
GET_SHORT_URL_VISITS,
|
GET_SHORT_URL_VISITS,
|
||||||
@@ -136,4 +137,9 @@ describe('shortUrlVisitsReducer', () => {
|
|||||||
expect(visits).toEqual([{}, {}, {}, {}, {}, {}]);
|
expect(visits).toEqual([{}, {}, {}, {}, {}, {}]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('cancelGetShortUrlVisits', () => {
|
||||||
|
it('just returns the action with proper type', () =>
|
||||||
|
expect(cancelGetShortUrlVisits()).toEqual({ type: GET_SHORT_URL_VISITS_CANCEL }));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user