Interactive interface for browsing global, full-resolution satellite imagery
add test for new action
Jason Kentdc681c9c8961
diff --git a/web/js/modules/animation/actions.test.js b/web/js/modules/animation/actions.test.jsindex a3e03e077..ea5ef3245 100644--- a/web/js/modules/animation/actions.test.js+++ b/web/js/modules/animation/actions.test.js@@ -12,6 +12,7 @@ import {changeEndDate,changeStartAndEndDate,changeFrameRate,+ changeCropBounds,onActivate} from './actions';import fixtures from '../../fixtures';@@ -135,3 +136,16 @@ test(expect(response2.type).toEqual(constants.OPEN_ANIMATION);});++test(+ 'changeBoundary action returns ' + constants.UPDATE_CROP_BOUNDS + ' action type and current bounds value',+ () => {+ const mockStore = configureMockStore(middlewares);+ const store = mockStore(state);+ const mockBounds = { x: 1, y: 1, x2: 2, y2: 2 };+ store.dispatch(changeCropBounds(mockBounds));+ const response = store.getActions()[0];+ expect(response.type).toEqual(constants.UPDATE_CROP_BOUNDS);+ expect(response.value).toEqual(mockBounds);+ }+);