Skip to content

Commit ed87ec7

Browse files
committed
commented out unfinished reducer test delete Child
1 parent 94cab0f commit ed87ec7

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

src/reducers/__tests__/leftReducers.test.ts

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,22 @@ describe('Left reducers', () => {
9090
});
9191

9292
// 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+
});
110110

111-
// NEXT TEST
112-
}
111+
// NEXT TEST

0 commit comments

Comments
 (0)