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