File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
src/codegen/props/__tests__ Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments