@@ -84,6 +84,7 @@ test("generate jsx element with children and without them", () => {
84
84
usedDataSources : new Map ( ) ,
85
85
indexesWithinAncestors : new Map ( ) ,
86
86
metas : new Map ( ) ,
87
+ tagsOverrides : { } ,
87
88
children : [ { type : "id" , value : "body" } ] ,
88
89
...renderData ( < $ . Body ws :id = "body" > Children</ $ . Body > ) ,
89
90
} )
@@ -102,6 +103,7 @@ test("generate jsx element with children and without them", () => {
102
103
usedDataSources : new Map ( ) ,
103
104
indexesWithinAncestors : new Map ( ) ,
104
105
metas : new Map ( ) ,
106
+ tagsOverrides : { } ,
105
107
children : [ { type : "id" , value : "image" } ] ,
106
108
...renderData ( < $ . Image ws :id = "image" > </ $ . Image > ) ,
107
109
} )
@@ -122,6 +124,7 @@ test("generate jsx element with namespaces components", () => {
122
124
usedDataSources : new Map ( ) ,
123
125
indexesWithinAncestors : new Map ( ) ,
124
126
metas : new Map ( ) ,
127
+ tagsOverrides : { } ,
125
128
children : [ { type : "id" , value : "body" } ] ,
126
129
...renderData ( < library . Body ws :id = "body" > </ library . Body > ) ,
127
130
} )
@@ -138,6 +141,7 @@ test("generate jsx element with namespaces components", () => {
138
141
usedDataSources : new Map ( ) ,
139
142
indexesWithinAncestors : new Map ( ) ,
140
143
metas : new Map ( ) ,
144
+ tagsOverrides : { } ,
141
145
children : [ { type : "id" , value : "image" } ] ,
142
146
...renderData ( < library . Image ws :id = "image" > </ library . Image > ) ,
143
147
} )
@@ -157,6 +161,7 @@ test("generate jsx element with literal props", () => {
157
161
usedDataSources : new Map ( ) ,
158
162
indexesWithinAncestors : new Map ( ) ,
159
163
metas : new Map ( ) ,
164
+ tagsOverrides : { } ,
160
165
children : [ { type : "id" , value : "body" } ] ,
161
166
...renderData ( < $ . Body ws :id = "body" string = "string" number = { 0 } > </ $ . Body > ) ,
162
167
} )
@@ -175,6 +180,7 @@ test("generate jsx element with literal props", () => {
175
180
usedDataSources : new Map ( ) ,
176
181
indexesWithinAncestors : new Map ( ) ,
177
182
metas : new Map ( ) ,
183
+ tagsOverrides : { } ,
178
184
children : [ { type : "id" , value : "image" } ] ,
179
185
...renderData (
180
186
< $ . Image
@@ -202,6 +208,7 @@ test("ignore asset and page props", () => {
202
208
usedDataSources : new Map ( ) ,
203
209
indexesWithinAncestors : new Map ( ) ,
204
210
metas : new Map ( ) ,
211
+ tagsOverrides : { } ,
205
212
children : [ { type : "id" , value : "box" } ] ,
206
213
...renderData (
207
214
< $ . Box
@@ -228,6 +235,7 @@ test("generate jsx element with data sources and action", () => {
228
235
usedDataSources : new Map ( ) ,
229
236
indexesWithinAncestors : new Map ( ) ,
230
237
metas : new Map ( ) ,
238
+ tagsOverrides : { } ,
231
239
children : [ { type : "id" , value : "box" } ] ,
232
240
...renderData (
233
241
< $ . Box
@@ -260,6 +268,7 @@ test("generate jsx element with condition based on show prop", () => {
260
268
usedDataSources : new Map ( ) ,
261
269
indexesWithinAncestors : new Map ( ) ,
262
270
metas : new Map ( ) ,
271
+ tagsOverrides : { } ,
263
272
children : [ { type : "id" , value : "box" } ] ,
264
273
...renderData ( < $ . Box ws :id = "box" data-ws-show = { true } > </ $ . Box > ) ,
265
274
} )
@@ -276,6 +285,7 @@ test("generate jsx element with condition based on show prop", () => {
276
285
usedDataSources : new Map ( ) ,
277
286
indexesWithinAncestors : new Map ( ) ,
278
287
metas : new Map ( ) ,
288
+ tagsOverrides : { } ,
279
289
children : [ { type : "id" , value : "box" } ] ,
280
290
...renderData ( < $ . Box ws :id = "box" data-ws-show = { false } > </ $ . Box > ) ,
281
291
} )
@@ -287,6 +297,7 @@ test("generate jsx element with condition based on show prop", () => {
287
297
usedDataSources : new Map ( ) ,
288
298
indexesWithinAncestors : new Map ( ) ,
289
299
metas : new Map ( ) ,
300
+ tagsOverrides : { } ,
290
301
children : [ { type : "id" , value : "box" } ] ,
291
302
...renderData (
292
303
< $ . Box ws :id = "box" data-ws-show = { expression `${ condition } ` } > </ $ . Box >
@@ -308,6 +319,7 @@ test("generate jsx children with text", () => {
308
319
generateJsxChildren ( {
309
320
scope : createScope ( ) ,
310
321
metas : new Map ( ) ,
322
+ tagsOverrides : { } ,
311
323
children : [
312
324
{ type : "text" , value : "Some\ntext" } ,
313
325
{ type : "text" , value : 'Escaped "text"' } ,
@@ -335,6 +347,7 @@ test("exclude text placeholders", () => {
335
347
generateJsxChildren ( {
336
348
scope : createScope ( ) ,
337
349
metas : new Map ( ) ,
350
+ tagsOverrides : { } ,
338
351
children : [
339
352
{ type : "text" , value : "Text" } ,
340
353
{ type : "text" , value : "Placeholder text" , placeholder : true } ,
@@ -360,6 +373,7 @@ test("generate jsx children with expression", () => {
360
373
generateJsxChildren ( {
361
374
scope : createScope ( ) ,
362
375
metas : new Map ( ) ,
376
+ tagsOverrides : { } ,
363
377
children : [
364
378
{ type : "expression" , value : "'Hello ' + $ws$dataSource$var" } ,
365
379
] ,
@@ -391,6 +405,7 @@ test("generate jsx children with nested instances", () => {
391
405
generateJsxChildren ( {
392
406
scope : createScope ( ) ,
393
407
metas : new Map ( ) ,
408
+ tagsOverrides : { } ,
394
409
children : [ { type : "id" , value : "form" } ] ,
395
410
usedDataSources : new Map ( ) ,
396
411
indexesWithinAncestors : new Map ( ) ,
@@ -420,6 +435,7 @@ test("deduplicate base and namespaced components with same short name", () => {
420
435
generateJsxChildren ( {
421
436
scope : createScope ( ) ,
422
437
metas : new Map ( ) ,
438
+ tagsOverrides : { } ,
423
439
children : [
424
440
{ type : "id" , value : "button1" } ,
425
441
{ type : "id" , value : "button2" } ,
@@ -448,6 +464,7 @@ test("generate collection component as map", () => {
448
464
generateJsxChildren ( {
449
465
scope : createScope ( ) ,
450
466
metas : new Map ( ) ,
467
+ tagsOverrides : { } ,
451
468
children : [ { type : "id" , value : "list" } ] ,
452
469
usedDataSources : new Map ( ) ,
453
470
indexesWithinAncestors : new Map ( ) ,
0 commit comments