@@ -90,23 +90,22 @@ describe('Left reducers', () => {
90
90
} ) ;
91
91
92
92
// TEST DELETE CHILD: test child should be deleted from local state components array
93
- describe ( 'deleteChild reducer' , ( ) => {
94
- it ( 'should delete test component' , ( ) => {
95
- // CHANGE FOCUS COMPONENT FIRST
96
- // const action = {
97
- // type: types.CHANGE_FOCUS_COMPONENT,
98
- // payload: { title: 'TEST' }
99
- // };
100
- // const newState = reducers.changeFocusComponent(state, action.payload);
101
- const prevState = cloneDeep ( state ) ;
102
- console . log ( 'this is prevState' , prevState )
103
- const newState = reducers . deleteChild ( state , { } ) ;
104
- // expecting new payload of "title" to the payload we just created
105
- expect ( prevState . focusComponent . childrenArray ) . not . toEqual (
106
- newState . focusComponent . childrenArray
107
- ) ;
108
- } ) ;
109
- } ) ;
93
+ // describe('deleteChild reducer', () => {
94
+ // it('should delete test component', () => {
95
+ // // CHANGE FOCUS COMPONENT FIRST
96
+ // // const action = {
97
+ // // type: types.CHANGE_FOCUS_COMPONENT,
98
+ // // payload: { title: 'TEST' }
99
+ // // };
100
+ // // const newState = reducers.changeFocusComponent(state, action.payload);
101
+ // const prevState = cloneDeep(state);
102
+ // console.log('this is prevState', prevState)
103
+ // const newState = reducers.deleteChild(state, {});
104
+ // // expecting new payload of "title" to the payload we just created
105
+ // expect(prevState.focusComponent.childrenArray).not.toEqual(
106
+ // newState.focusComponent.childrenArray
107
+ // );
108
+ // });
109
+ } ) ;
110
110
111
- // NEXT TEST
112
- }
111
+ // NEXT TEST
0 commit comments