@mgdis/core-ui-helpers 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/.turbo/turbo-build.log +52 -0
  2. package/CHANGELOG.md +12 -0
  3. package/LICENSE +29 -0
  4. package/README.md +95 -0
  5. package/dist/angular/index.cjs +27 -0
  6. package/dist/angular/index.cjs.map +1 -0
  7. package/dist/angular/index.d.ts +21 -0
  8. package/dist/angular/index.js +25 -0
  9. package/dist/angular/index.js.map +1 -0
  10. package/dist/angular/index.umd.js +33 -0
  11. package/dist/angular/index.umd.js.map +1 -0
  12. package/dist/locale/index.cjs +164 -0
  13. package/dist/locale/index.cjs.map +1 -0
  14. package/dist/locale/index.d.ts +103 -0
  15. package/dist/locale/index.js +156 -0
  16. package/dist/locale/index.js.map +1 -0
  17. package/dist/locale/index.umd.js +170 -0
  18. package/dist/locale/index.umd.js.map +1 -0
  19. package/dist/playwright/index.cjs +124 -0
  20. package/dist/playwright/index.cjs.map +1 -0
  21. package/dist/playwright/index.d.ts +35 -0
  22. package/dist/playwright/index.js +120 -0
  23. package/dist/playwright/index.js.map +1 -0
  24. package/dist/playwright/index.umd.js +130 -0
  25. package/dist/playwright/index.umd.js.map +1 -0
  26. package/dist/stencil/index.cjs +281 -0
  27. package/dist/stencil/index.cjs.map +1 -0
  28. package/dist/stencil/index.d.ts +111 -0
  29. package/dist/stencil/index.js +277 -0
  30. package/dist/stencil/index.js.map +1 -0
  31. package/dist/stencil/index.umd.js +287 -0
  32. package/dist/stencil/index.umd.js.map +1 -0
  33. package/dist/storybook/index.cjs +2109 -0
  34. package/dist/storybook/index.cjs.map +1 -0
  35. package/dist/storybook/index.d.ts +85 -0
  36. package/dist/storybook/index.js +2103 -0
  37. package/dist/storybook/index.js.map +1 -0
  38. package/dist/storybook/index.umd.js +2115 -0
  39. package/dist/storybook/index.umd.js.map +1 -0
  40. package/dist/tests/index.cjs +166 -0
  41. package/dist/tests/index.cjs.map +1 -0
  42. package/dist/tests/index.d.ts +91 -0
  43. package/dist/tests/index.js +161 -0
  44. package/dist/tests/index.js.map +1 -0
  45. package/dist/tests/index.umd.js +172 -0
  46. package/dist/tests/index.umd.js.map +1 -0
  47. package/dist/utils/index.cjs +433 -0
  48. package/dist/utils/index.cjs.map +1 -0
  49. package/dist/utils/index.d.ts +265 -0
  50. package/dist/utils/index.js +409 -0
  51. package/dist/utils/index.js.map +1 -0
  52. package/dist/utils/index.umd.js +439 -0
  53. package/dist/utils/index.umd.js.map +1 -0
  54. package/dist/vue/index.cjs +1934 -0
  55. package/dist/vue/index.cjs.map +1 -0
  56. package/dist/vue/index.d.ts +35 -0
  57. package/dist/vue/index.js +1932 -0
  58. package/dist/vue/index.js.map +1 -0
  59. package/dist/vue/index.umd.js +1940 -0
  60. package/dist/vue/index.umd.js.map +1 -0
  61. package/json-doc.test.json +253 -0
  62. package/package.json +80 -0
  63. package/rollup.config.mjs +61 -0
  64. package/src/angular/index.spec.ts +8 -0
  65. package/src/angular/index.ts +1 -0
  66. package/src/angular/mg-angular-logger/index.ts +1 -0
  67. package/src/angular/mg-angular-logger/mg-angular-logger.conf.ts +3 -0
  68. package/src/angular/mg-angular-logger/mg-angular-logger.spec.ts +40 -0
  69. package/src/angular/mg-angular-logger/mg-angular-logger.ts +23 -0
  70. package/src/locale/index.spec.ts +14 -0
  71. package/src/locale/index.ts +1 -0
  72. package/src/locale/locale.spec.ts +173 -0
  73. package/src/locale/locale.ts +166 -0
  74. package/src/playwright/config/index.ts +43 -0
  75. package/src/playwright/index.spec.ts +16 -0
  76. package/src/playwright/index.ts +4 -0
  77. package/src/playwright/utils/__snapshots__/utils.spec.ts.snap +48 -0
  78. package/src/playwright/utils/index.ts +1 -0
  79. package/src/playwright/utils/utils.spec.ts +43 -0
  80. package/src/playwright/utils/utils.ts +64 -0
  81. package/src/stencil/ide/__snapshots__/ide.spec.ts.snap +527 -0
  82. package/src/stencil/ide/ide.spec.ts +25 -0
  83. package/src/stencil/ide/ide.ts +214 -0
  84. package/src/stencil/ide/index.ts +1 -0
  85. package/src/stencil/index.spec.ts +12 -0
  86. package/src/stencil/index.ts +1 -0
  87. package/src/storybook/index.spec.ts +15 -0
  88. package/src/storybook/index.ts +1 -0
  89. package/src/storybook/stencil/__snapshots__/stencil.spec.ts.snap +329 -0
  90. package/src/storybook/stencil/index.ts +1 -0
  91. package/src/storybook/stencil/stencil-shim.d.ts +1 -0
  92. package/src/storybook/stencil/stencil.conf.ts +4 -0
  93. package/src/storybook/stencil/stencil.spec.ts +142 -0
  94. package/src/storybook/stencil/stencil.ts +366 -0
  95. package/src/tests/index.spec.ts +13 -0
  96. package/src/tests/index.ts +1 -0
  97. package/src/tests/unit/__snapshots__/unit.spec.ts.snap +52 -0
  98. package/src/tests/unit/index.ts +1 -0
  99. package/src/tests/unit/unit.conf.ts +9 -0
  100. package/src/tests/unit/unit.spec.ts +44 -0
  101. package/src/tests/unit/unit.ts +171 -0
  102. package/src/utils/attributes/class-list/class-list.spec.ts +36 -0
  103. package/src/utils/attributes/class-list/class-list.ts +51 -0
  104. package/src/utils/attributes/class-list/index.ts +1 -0
  105. package/src/utils/attributes/id/id.spec.ts +51 -0
  106. package/src/utils/attributes/id/id.ts +46 -0
  107. package/src/utils/attributes/id/index.ts +1 -0
  108. package/src/utils/attributes/index.ts +3 -0
  109. package/src/utils/attributes/to-kebab-case/index.ts +1 -0
  110. package/src/utils/attributes/to-kebab-case/to-kebab-case.spec.ts +29 -0
  111. package/src/utils/attributes/to-kebab-case/to-kebab-case.ts +23 -0
  112. package/src/utils/components/__snapshots__/components.spec.ts.snap +313 -0
  113. package/src/utils/components/components.conf.ts +11 -0
  114. package/src/utils/components/components.spec.ts +192 -0
  115. package/src/utils/components/components.ts +138 -0
  116. package/src/utils/components/index.ts +2 -0
  117. package/src/utils/date/date.spec.ts +12 -0
  118. package/src/utils/date/date.ts +20 -0
  119. package/src/utils/date/index.ts +1 -0
  120. package/src/utils/elements/elements.spec.ts +17 -0
  121. package/src/utils/elements/elements.ts +16 -0
  122. package/src/utils/elements/index.ts +1 -0
  123. package/src/utils/index.spec.ts +84 -0
  124. package/src/utils/index.ts +8 -0
  125. package/src/utils/number/index.ts +1 -0
  126. package/src/utils/number/number.spec.ts +14 -0
  127. package/src/utils/number/number.ts +6 -0
  128. package/src/utils/object/index.ts +2 -0
  129. package/src/utils/object/object.conf.ts +4 -0
  130. package/src/utils/object/object.spec.ts +98 -0
  131. package/src/utils/object/object.ts +26 -0
  132. package/src/utils/string/index.ts +1 -0
  133. package/src/utils/string/string.spec.ts +47 -0
  134. package/src/utils/string/string.ts +38 -0
  135. package/src/utils/windows/index.ts +1 -0
  136. package/src/utils/windows/windows.spec.ts +65 -0
  137. package/src/utils/windows/windows.ts +50 -0
  138. package/src/vue/index.spec.ts +8 -0
  139. package/src/vue/index.ts +1 -0
  140. package/src/vue/mg-model/index.ts +1 -0
  141. package/src/vue/mg-model/mg-model.conf.ts +6 -0
  142. package/src/vue/mg-model/mg-model.spec.ts +50 -0
  143. package/src/vue/mg-model/mg-model.ts +50 -0
  144. package/tsconfig.json +17 -0
  145. package/typedoc.json +14 -0
  146. package/vitest.config.mts +13 -0
@@ -0,0 +1,527 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`ide > vsCodeCssGenerator > Should generate VScode CSS custom data 1`] = `
4
+ {
5
+ "properties": [
6
+ {
7
+ "description": "Custom property documentation",
8
+ "name": "--custom-property",
9
+ },
10
+ ],
11
+ "version": 1.1,
12
+ }
13
+ `;
14
+
15
+ exports[`ide > vsCodeGenerator > Should generate VScode HTML custom data 1`] = `
16
+ {
17
+ "globalAttributes": [],
18
+ "tags": [
19
+ {
20
+ "attributes": [
21
+ {
22
+ "description": "docs
23
+
24
+ Type: \`string\`",
25
+ "name": "prop",
26
+ "references": [
27
+ {
28
+ "name": "Storybook",
29
+ "url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
30
+ },
31
+ {
32
+ "name": "Sources",
33
+ "url": "http://sources.test/src/components/atoms/my-comp/my-comp.tsx",
34
+ },
35
+ ],
36
+ "values": undefined,
37
+ },
38
+ {
39
+ "description": "docs
40
+
41
+ Type: \`string\`",
42
+ "name": "attr",
43
+ "references": [
44
+ {
45
+ "name": "Storybook",
46
+ "url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
47
+ },
48
+ {
49
+ "name": "Sources",
50
+ "url": "http://sources.test/src/components/atoms/my-comp/my-comp.tsx",
51
+ },
52
+ ],
53
+ "values": [
54
+ {
55
+ "name": "blu",
56
+ },
57
+ {
58
+ "name": "bli",
59
+ },
60
+ ],
61
+ },
62
+ {
63
+ "description": "docs
64
+
65
+ Type: \`(string | number)[]\`",
66
+ "name": "multionetype",
67
+ "references": [
68
+ {
69
+ "name": "Storybook",
70
+ "url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
71
+ },
72
+ {
73
+ "name": "Sources",
74
+ "url": "http://sources.test/src/components/atoms/my-comp/my-comp.tsx",
75
+ },
76
+ ],
77
+ "values": undefined,
78
+ },
79
+ {
80
+ "description": "docs
81
+
82
+ Type: \`number\`",
83
+ "name": "number",
84
+ "references": [
85
+ {
86
+ "name": "Storybook",
87
+ "url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
88
+ },
89
+ {
90
+ "name": "Sources",
91
+ "url": "http://sources.test/src/components/atoms/my-comp/my-comp.tsx",
92
+ },
93
+ ],
94
+ "values": undefined,
95
+ },
96
+ {
97
+ "description": "docs
98
+
99
+ Type: \`boolean\`",
100
+ "name": "boolean",
101
+ "references": [
102
+ {
103
+ "name": "Storybook",
104
+ "url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
105
+ },
106
+ {
107
+ "name": "Sources",
108
+ "url": "http://sources.test/src/components/atoms/my-comp/my-comp.tsx",
109
+ },
110
+ ],
111
+ "values": undefined,
112
+ },
113
+ {
114
+ "description": "docs
115
+
116
+ Type: \`{ type: string, value: "blu" | "bli" }\`",
117
+ "name": "objecttype",
118
+ "references": [
119
+ {
120
+ "name": "Storybook",
121
+ "url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
122
+ },
123
+ {
124
+ "name": "Sources",
125
+ "url": "http://sources.test/src/components/atoms/my-comp/my-comp.tsx",
126
+ },
127
+ ],
128
+ "values": undefined,
129
+ },
130
+ {
131
+ "description": "docs
132
+
133
+ Type: \`"blu" | "bli"\`",
134
+ "name": "multitype",
135
+ "references": [
136
+ {
137
+ "name": "Storybook",
138
+ "url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
139
+ },
140
+ {
141
+ "name": "Sources",
142
+ "url": "http://sources.test/src/components/atoms/my-comp/my-comp.tsx",
143
+ },
144
+ ],
145
+ "values": undefined,
146
+ },
147
+ {
148
+ "description": "docs
149
+
150
+ Type: \`number | string\`",
151
+ "name": "multitypewithstring",
152
+ "references": [
153
+ {
154
+ "name": "Storybook",
155
+ "url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
156
+ },
157
+ {
158
+ "name": "Sources",
159
+ "url": "http://sources.test/src/components/atoms/my-comp/my-comp.tsx",
160
+ },
161
+ ],
162
+ "values": undefined,
163
+ },
164
+ {
165
+ "description": "docs
166
+
167
+ Type: \`number[] | string[]\`",
168
+ "name": "arraytypes",
169
+ "references": [
170
+ {
171
+ "name": "Storybook",
172
+ "url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
173
+ },
174
+ {
175
+ "name": "Sources",
176
+ "url": "http://sources.test/src/components/atoms/my-comp/my-comp.tsx",
177
+ },
178
+ ],
179
+ "values": undefined,
180
+ },
181
+ ],
182
+ "description": "Attributes:
183
+ - \`prop\`: docs
184
+ - \`multionetype\`: docs
185
+ - \`number\`: docs
186
+ - \`boolean\`: docs
187
+ - \`objecttype\`: docs
188
+ - \`multitype\`: docs
189
+ - \`multitypewithstring\`: docs
190
+ - \`arraytypes\`: docs
191
+
192
+ Properties:
193
+ - \`attr\`: docs
194
+
195
+ Methods:
196
+ - \`method\`: docs
197
+
198
+ Events:
199
+ - \`event\`: docs
200
+
201
+ Listeners:
202
+ - \`keydown\`
203
+
204
+ Slots:
205
+ - \`\`:
206
+ - \`title\`:
207
+
208
+ ",
209
+ "name": "my-comp",
210
+ "references": [
211
+ {
212
+ "name": "Storybook",
213
+ "url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
214
+ },
215
+ {
216
+ "name": "Sources",
217
+ "url": "http://sources.test/src/components/atoms/my-comp/my-comp.tsx",
218
+ },
219
+ ],
220
+ },
221
+ {
222
+ "attributes": [],
223
+ "description": "overview
224
+
225
+ ",
226
+ "name": "my-second-comp",
227
+ "references": [
228
+ {
229
+ "name": "Storybook",
230
+ "url": undefined,
231
+ },
232
+ {
233
+ "name": "Sources",
234
+ "url": undefined,
235
+ },
236
+ ],
237
+ },
238
+ ],
239
+ "valueSets": [],
240
+ "version": 1.1,
241
+ }
242
+ `;
243
+
244
+ exports[`ide > webTypesGenerator > Should generate web types 1`] = `
245
+ {
246
+ "$schema": "https://json.schemastore.org/web-types",
247
+ "contributions": {
248
+ "html": {
249
+ "elements": [
250
+ {
251
+ "attributes": [
252
+ {
253
+ "description": "docs
254
+
255
+ Type: \`string\`",
256
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
257
+ "name": "prop",
258
+ "value": {
259
+ "default": undefined,
260
+ "required": true,
261
+ "type": "string",
262
+ },
263
+ },
264
+ {
265
+ "description": "docs
266
+
267
+ Type: \`(string | number)[]\`",
268
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
269
+ "name": "multionetype",
270
+ "value": {
271
+ "default": undefined,
272
+ "required": true,
273
+ "type": "(string | number)[]",
274
+ },
275
+ },
276
+ {
277
+ "description": "docs
278
+
279
+ Type: \`number\`",
280
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
281
+ "name": "number",
282
+ "value": {
283
+ "default": undefined,
284
+ "required": true,
285
+ "type": "number",
286
+ },
287
+ },
288
+ {
289
+ "description": "docs
290
+
291
+ Type: \`boolean\`",
292
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
293
+ "name": "boolean",
294
+ "value": {
295
+ "default": undefined,
296
+ "required": true,
297
+ "type": "boolean",
298
+ },
299
+ },
300
+ {
301
+ "description": "docs
302
+
303
+ Type: \`{ type: string, value: "blu" | "bli" }\`",
304
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
305
+ "name": "objecttype",
306
+ "value": {
307
+ "default": undefined,
308
+ "required": true,
309
+ "type": "{ type: string, value: "blu" | "bli" }",
310
+ },
311
+ },
312
+ {
313
+ "description": "docs
314
+
315
+ Type: \`"blu" | "bli"\`",
316
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
317
+ "name": "multitype",
318
+ "value": {
319
+ "default": undefined,
320
+ "required": true,
321
+ "type": ""blu" | "bli"",
322
+ },
323
+ },
324
+ {
325
+ "description": "docs
326
+
327
+ Type: \`number | string\`",
328
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
329
+ "name": "multitypewithstring",
330
+ "value": {
331
+ "default": undefined,
332
+ "required": true,
333
+ "type": "number | string",
334
+ },
335
+ },
336
+ {
337
+ "description": "docs
338
+
339
+ Type: \`number[] | string[]\`",
340
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
341
+ "name": "arraytypes",
342
+ "value": {
343
+ "default": undefined,
344
+ "required": true,
345
+ "type": "number[] | string[]",
346
+ },
347
+ },
348
+ ],
349
+ "css": {
350
+ "properties": [
351
+ {
352
+ "description": "Custom property documentation",
353
+ "name": "--custom-property",
354
+ },
355
+ ],
356
+ },
357
+ "description": "Attributes:
358
+ - \`prop\`: docs
359
+ - \`multionetype\`: docs
360
+ - \`number\`: docs
361
+ - \`boolean\`: docs
362
+ - \`objecttype\`: docs
363
+ - \`multitype\`: docs
364
+ - \`multitypewithstring\`: docs
365
+ - \`arraytypes\`: docs
366
+
367
+ Properties:
368
+ - \`attr\`: docs
369
+
370
+ Methods:
371
+ - \`method\`: docs
372
+
373
+ Events:
374
+ - \`event\`: docs
375
+
376
+ Listeners:
377
+ - \`keydown\`
378
+
379
+ Slots:
380
+ - \`\`:
381
+ - \`title\`:
382
+
383
+ ",
384
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
385
+ "js": {
386
+ "events": [
387
+ {
388
+ "description": "docs",
389
+ "name": "event",
390
+ },
391
+ ],
392
+ "properties": [
393
+ {
394
+ "description": "docs
395
+
396
+ Type: \`string\`",
397
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
398
+ "name": "prop",
399
+ "value": {
400
+ "default": undefined,
401
+ "required": true,
402
+ "type": "string",
403
+ },
404
+ },
405
+ {
406
+ "description": "docs
407
+
408
+ Type: \`string\`",
409
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
410
+ "name": "attr",
411
+ "value": {
412
+ "default": undefined,
413
+ "required": true,
414
+ "type": "string",
415
+ },
416
+ },
417
+ {
418
+ "description": "docs
419
+
420
+ Type: \`(string | number)[]\`",
421
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
422
+ "name": "multionetype",
423
+ "value": {
424
+ "default": undefined,
425
+ "required": true,
426
+ "type": "(string | number)[]",
427
+ },
428
+ },
429
+ {
430
+ "description": "docs
431
+
432
+ Type: \`number\`",
433
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
434
+ "name": "number",
435
+ "value": {
436
+ "default": undefined,
437
+ "required": true,
438
+ "type": "number",
439
+ },
440
+ },
441
+ {
442
+ "description": "docs
443
+
444
+ Type: \`boolean\`",
445
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
446
+ "name": "boolean",
447
+ "value": {
448
+ "default": undefined,
449
+ "required": true,
450
+ "type": "boolean",
451
+ },
452
+ },
453
+ {
454
+ "description": "docs
455
+
456
+ Type: \`{ type: string, value: "blu" | "bli" }\`",
457
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
458
+ "name": "objecttype",
459
+ "value": {
460
+ "default": undefined,
461
+ "required": true,
462
+ "type": "{ type: string, value: "blu" | "bli" }",
463
+ },
464
+ },
465
+ {
466
+ "description": "docs
467
+
468
+ Type: \`"blu" | "bli"\`",
469
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
470
+ "name": "multitype",
471
+ "value": {
472
+ "default": undefined,
473
+ "required": true,
474
+ "type": ""blu" | "bli"",
475
+ },
476
+ },
477
+ {
478
+ "description": "docs
479
+
480
+ Type: \`number | string\`",
481
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
482
+ "name": "multitypewithstring",
483
+ "value": {
484
+ "default": undefined,
485
+ "required": true,
486
+ "type": "number | string",
487
+ },
488
+ },
489
+ {
490
+ "description": "docs
491
+
492
+ Type: \`number[] | string[]\`",
493
+ "doc-url": "http://sb.test/?path=/docs/atoms-my-comp--docs",
494
+ "name": "arraytypes",
495
+ "value": {
496
+ "default": undefined,
497
+ "required": true,
498
+ "type": "number[] | string[]",
499
+ },
500
+ },
501
+ ],
502
+ },
503
+ "name": "my-comp",
504
+ },
505
+ {
506
+ "attributes": [],
507
+ "css": {
508
+ "properties": [],
509
+ },
510
+ "description": "overview
511
+
512
+ ",
513
+ "doc-url": undefined,
514
+ "js": {
515
+ "events": [],
516
+ "properties": [],
517
+ },
518
+ "name": "my-second-comp",
519
+ },
520
+ ],
521
+ },
522
+ },
523
+ "description-markup": "markdown",
524
+ "name": "test",
525
+ "version": "1.0.0",
526
+ }
527
+ `;
@@ -0,0 +1,25 @@
1
+ import { describe, expect, test } from 'vitest';
2
+ import { webTypesGenerator, vsCodeGenerator, vsCodeCssGenerator } from '.';
3
+ import { JsonDocs } from '@stencil/core/internal';
4
+ import jsonDocs from '../../../json-doc.test.json';
5
+
6
+ describe('ide', () => {
7
+ describe('webTypesGenerator', () => {
8
+ test('Should generate web types', () => {
9
+ const webTypes = webTypesGenerator('test', '1.0.0', jsonDocs as JsonDocs, 'http://sb.test/?path=/docs/');
10
+ expect(webTypes).toMatchSnapshot();
11
+ });
12
+ });
13
+ describe('vsCodeGenerator', () => {
14
+ test('Should generate VScode HTML custom data', () => {
15
+ const customData = vsCodeGenerator(jsonDocs as JsonDocs, 'http://sb.test/?path=/docs/', 'http://sources.test/');
16
+ expect(customData).toMatchSnapshot();
17
+ });
18
+ });
19
+ describe('vsCodeCssGenerator', () => {
20
+ test('Should generate VScode CSS custom data', () => {
21
+ const customData = vsCodeCssGenerator(jsonDocs as JsonDocs);
22
+ expect(customData).toMatchSnapshot();
23
+ });
24
+ });
25
+ });