Skip to content

Commit

Permalink
windowById change when dispatch CLOSE_TARGET_WIDGET_FORCED
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunmoAhn committed Aug 9, 2018
1 parent 322dcaa commit f975b8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/store/personal/windowById/index.js
Expand Up @@ -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) => {
Expand Down
5 changes: 5 additions & 0 deletions app/store/personal/windowById/windowById.spec.js
Expand Up @@ -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({}));
Expand Down

0 comments on commit f975b8b

Please sign in to comment.