From f975b8b8b51e5cec295cd65861b17f0f572bafdb Mon Sep 17 00:00:00 2001 From: hyunmoahn Date: Thu, 9 Aug 2018 21:26:57 +0900 Subject: [PATCH] windowById change when dispatch CLOSE_TARGET_WIDGET_FORCED --- app/store/personal/windowById/index.js | 1 + app/store/personal/windowById/windowById.spec.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/app/store/personal/windowById/index.js b/app/store/personal/windowById/index.js index 37f6d36c..1f3da6fb 100644 --- a/app/store/personal/windowById/index.js +++ b/app/store/personal/windowById/index.js @@ -26,6 +26,7 @@ const windowByIdReducer = handleActions({ [combineActions( TYPES.CLOSE_BROWSER_WINDOW, TYPES.CLOSE_TARGET_WIDGET, + TYPES.CLOSE_TARGET_WIDGET_FORCED, TYPES.CLOSE_PREFERENCE, TYPES.UPDATE_PROGRESS_WINDOW_CLOSE, )]: (state, action) => { diff --git a/app/store/personal/windowById/windowById.spec.js b/app/store/personal/windowById/windowById.spec.js index ad4d165c..3b004639 100644 --- a/app/store/personal/windowById/windowById.spec.js +++ b/app/store/personal/windowById/windowById.spec.js @@ -64,6 +64,11 @@ describe('test windowById reducer', () => { .toEqual(Immutable.Map({})); }); + it('should handle closeTargetWidgetForced', () => { + expect(windowById(mockInitial, widgetActions.closeTargetWidgetForced(mockId))) + .toEqual(Immutable.Map({})); + }); + it('should handle updateProgressWindowClose', () => { expect(windowById(mockInitial, updateActions.updateProgressWindowClose(mockId))) .toEqual(Immutable.Map({}));