Skip to content

Commit 0438e12

Browse files
authored
Update leftReducers.test.ts
1 parent d14062e commit 0438e12

File tree

1 file changed

+0
-58
lines changed

1 file changed

+0
-58
lines changed

src/reducers/__tests__/leftReducers.test.ts

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -122,61 +122,3 @@ describe('Left reducers', () => {
122122
// });
123123
// NEXT TEST
124124
});
125-
// // // declaring initial state
126-
// let state: any;
127-
// beforeEach(() => {
128-
// state = {
129-
// editMode: -1,
130-
// testing: 'testingReducer',
131-
// codeReadOnly: true,
132-
// components: [
133-
// {
134-
// changed: true,
135-
// childrenArray: [{}],
136-
// classBased: false,
137-
// code: '....',
138-
// color: '#FF6D00',
139-
// focusChild: {},
140-
// focusChildId: -1,
141-
// id: 1,
142-
// nextChildId: 3,
143-
// nextPropId: 2,
144-
// position: {
145-
// height: 850,
146-
// width: 500,
147-
// x: 70,
148-
// y: 100
149-
// },
150-
// props: [],
151-
// stateful: false,
152-
// title: 'App'
153-
// }
154-
// ],
155-
// focusComponent: 'App'
156-
// };
157-
// });
158-
// describe('changeFocusComponent reducer', () => {
159-
// // eslint-disable-next-line no-unused-expressions
160-
// it('update the Focus Component in state', () => {
161-
// // self-contained actions types
162-
// // // self contained actions
163-
// const action = {
164-
// type: types.CHANGE_FOCUS_COMPONENT,
165-
// payload: { title: 'NOT-COMPONENT' }
166-
// };
167-
// const newState = reducers.changeFocusComponent(state, action.payload);
168-
// expect(newState).toStrictEqual(state);
169-
// // (initialState.focusComponent.title).not.toStrictEqual(
170-
// // newState.focusComponent.title
171-
// // );
172-
// // expect(
173-
// // reducers.changeFocusComponent([], {
174-
// // type: types.CHANGE_FOCUS_COMPONENT,
175-
// // title: 'TEST_CHANGE_FOCUS_APP'
176-
// // })
177-
// // ).not.toEqual([initialState]);
178-
// // take previous snapshot of component then compare it to itself
179-
// });
180-
// // return an expect new state to strictly equal
181-
// });
182-
// });

0 commit comments

Comments
 (0)