Skip to content

Commit a4a6a63

Browse files
committed
Fix position
1 parent 70c9ac7 commit a4a6a63

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/codegen/props/__tests__/position.test.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,12 @@ describe('position', () => {
183183

184184
it('should return relative position for parent with absolute children', () => {
185185
const node = {
186-
type: 'FRAME',
187-
fills: [],
186+
type: 'COMPONENT_SET',
188187
children: [
189188
{
190-
type: 'TEXT',
191189
layoutPositioning: 'ABSOLUTE',
192190
visible: true,
193191
},
194-
{
195-
type: 'TEXT',
196-
visible: true,
197-
},
198192
],
199193
} as any
200194
const result = getPositionProps(node)
@@ -206,19 +200,13 @@ describe('position', () => {
206200

207201
it('should return relative position for freelayout parent with AUTO children', () => {
208202
const node = {
209-
type: 'FRAME',
203+
type: 'COMPONENT_SET',
210204
layoutPositioning: 'AUTO',
211-
fills: [],
212205
children: [
213206
{
214-
type: 'TEXT',
215207
layoutPositioning: 'AUTO',
216208
visible: true,
217209
},
218-
{
219-
type: 'TEXT',
220-
visible: true,
221-
},
222210
],
223211
} as any
224212

0 commit comments

Comments
 (0)