From d7312d26f7b2b2719a98451a5b0f61a5aae48cd7 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 8 Mar 2019 19:45:35 +0100 Subject: [PATCH] Added missing test for new action creator --- test/visits/reducers/shortUrlVisits.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/visits/reducers/shortUrlVisits.test.js b/test/visits/reducers/shortUrlVisits.test.js index fcb09953..97978609 100644 --- a/test/visits/reducers/shortUrlVisits.test.js +++ b/test/visits/reducers/shortUrlVisits.test.js @@ -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 })); + }); });