Added missing test for new action creator

This commit is contained in:
Alejandro Celaya 2019-03-08 19:45:35 +01:00
parent 4e6ef6ac53
commit d7312d26f7

View file

@ -1,6 +1,7 @@
import * as sinon from 'sinon';
import reducer, {
getShortUrlVisits,
cancelGetShortUrlVisits,
GET_SHORT_URL_VISITS_START,
GET_SHORT_URL_VISITS_ERROR,
GET_SHORT_URL_VISITS,
@ -136,4 +137,9 @@ describe('shortUrlVisitsReducer', () => {
expect(visits).toEqual([{}, {}, {}, {}, {}, {}]);
});
});
describe('cancelGetShortUrlVisits', () => {
it('just returns the action with proper type', () =>
expect(cancelGetShortUrlVisits()).toEqual({ type: GET_SHORT_URL_VISITS_CANCEL }));
});
});