Skip to content

Commit 9d58eb3

Browse files
committed
Debug test case for mixComponents
1 parent e5869ab commit 9d58eb3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/__tests__/ignore/stateComponents-testcases.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const mixPayload = new Tree('root', 'root');
139139
mixPayload.route = rootPayload.route;
140140

141141
// Outer Func Comp
142-
let funcPayloadMix = new Tree({ count: 0 }, 'IncrementFunc', functionalComponentData, null);
142+
let funcPayloadMix = new Tree({ count: 0 }, 'IncrementFunc1', functionalComponentData, null);
143143
funcPayloadMix.componentData = {
144144
...funcPayloadMix.componentData,
145145
hooksState: { count: 0 },
@@ -157,13 +157,12 @@ classPayloadMix.componentData = {
157157
mixPayload.children.push(deepCopy(classPayloadMix));
158158

159159
// Inner Func Comp
160-
funcPayloadMix = new Tree({ count: 0 }, 'IncrementFunc', functionalComponentData, null);
160+
funcPayloadMix = new Tree({ count: 0 }, 'IncrementFunc2', functionalComponentData, null);
161161
funcPayloadMix.componentData = {
162162
...funcPayloadMix.componentData,
163163
hooksState: { count: 0 },
164164
hooksIndex: [1],
165165
};
166-
funcPayloadMix.name = 'IncrementFunc1';
167166
mixPayload.children[0].children.push(deepCopy(funcPayloadMix));
168167

169168
// Inner Class Comp

0 commit comments

Comments
 (0)