Skip to content

Commit 55665d8

Browse files
committed
Additional comments to componentReducer.test.ts and deleted FormsContainer.tsx
1 parent 77630da commit 55665d8

File tree

2 files changed

+2
-38
lines changed

2 files changed

+2
-38
lines changed

__tests__/componentReducer.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('Testing componentReducer functionality', () => {
4242
// expect state.components array to have length 3
4343
const length = state.components.length;
4444
expect(length).toEqual(3);
45-
// expect new root to match id of component id of TestRootChange
45+
// expect new root to match id of component id of TestRootChange (rootComponents is an array of component ID numbers)
4646
expect(state.rootComponents[state.rootComponents.length - 1]).toEqual(action.payload.id);
4747
});
4848
});
@@ -189,6 +189,7 @@ describe('Testing componentReducer functionality', () => {
189189
state.components[focusIndex].past = [];
190190

191191
// snapShotFunc taken from src/components/main/canvas.tsx to test undo functionality
192+
// snapShotFunc takes a snapshot of state to be used in UNDO/REDO functionality
192193
const snapShotFuncCopy = () => {
193194
const deepCopiedState = JSON.parse(JSON.stringify(state));
194195
// pushes the last user action on the canvas into the past array of Component

app/src/Dashboard/FormsContainer.tsx

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)