From 5b229c2dcdcd37ca478ee2c75e84144c16c3bb0e Mon Sep 17 00:00:00 2001 From: "zokutyou2@gmail.com" Date: Sat, 26 Jun 2021 10:17:58 +0900 Subject: [PATCH] fix optionsSpec.js --- web/src/js/__tests__/ducks/optionsSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/js/__tests__/ducks/optionsSpec.js b/web/src/js/__tests__/ducks/optionsSpec.js index 5eb603a32..63b69cde7 100644 --- a/web/src/js/__tests__/ducks/optionsSpec.js +++ b/web/src/js/__tests__/ducks/optionsSpec.js @@ -13,12 +13,12 @@ describe('option reducer', () => { }) it('should handle receive action', () => { - let action = { type: OptionsActions.RECEIVE, data: {id: 'foo'} } + let action = { type: OptionsActions.RECEIVE, data: {id: {value: 'foo'} } } expect(reduceOptions(undefined, action)).toEqual({id: 'foo'}) }) it('should handle update action', () => { - let action = {type: OptionsActions.UPDATE, data: {id: 1} } + let action = {type: OptionsActions.UPDATE, data: {id: {value: 1} } } expect(reduceOptions(undefined, action)).toEqual({...OptionsActions.defaultState, id: 1}) }) })