Skip to content

Commit edb46f3

Browse files
committed
add to tests
1 parent ada8743 commit edb46f3

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

packages/vuetify/src/components/VTreeview/__tests__/VTreeview.spec.browser.tsx

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ const items = [
6060
]
6161

6262
describe.each([
63-
['plain', items],
64-
['reactive', reactive(items)],
65-
])('VTreeview with %s items', (_, items) => {
63+
['plain', 'render', items],
64+
['reactive', 'render', reactive(items)],
65+
['plain', 'props', items],
66+
['reactive', 'props', reactive(items)],
67+
] as const)('VTreeview with %s items and %s registration', (_, itemsRegistration, items) => {
6668
describe('activate', () => {
6769
it('single-leaf strategy', async () => {
6870
const activated = ref([])
@@ -74,6 +76,7 @@ describe.each([
7476
itemValue="id"
7577
activatable
7678
activeStrategy="single-leaf"
79+
itemsRegistration={ itemsRegistration }
7780
/>
7881
))
7982

@@ -96,6 +99,7 @@ describe.each([
9699
itemValue="id"
97100
activatable
98101
activeStrategy="leaf"
102+
itemsRegistration={ itemsRegistration }
99103
/>
100104
))
101105

@@ -118,6 +122,7 @@ describe.each([
118122
itemValue="id"
119123
activatable
120124
activeStrategy="independent"
125+
itemsRegistration={ itemsRegistration }
121126
/>
122127
))
123128

@@ -143,6 +148,7 @@ describe.each([
143148
itemValue="id"
144149
activatable
145150
activeStrategy="single-independent"
151+
itemsRegistration={ itemsRegistration }
146152
/>
147153
))
148154

@@ -169,6 +175,7 @@ describe.each([
169175
activatable
170176
activeStrategy="independent"
171177
onUpdate:activated={ onActivated }
178+
itemsRegistration={ itemsRegistration }
172179
/>
173180
))
174181

@@ -191,6 +198,7 @@ describe.each([
191198
itemValue="id"
192199
selectable
193200
selectStrategy="single-leaf"
201+
itemsRegistration={ itemsRegistration }
194202
/>
195203
))
196204

@@ -212,6 +220,7 @@ describe.each([
212220
itemValue="id"
213221
selectable
214222
selectStrategy="leaf"
223+
itemsRegistration={ itemsRegistration }
215224
/>
216225
))
217226

@@ -233,6 +242,7 @@ describe.each([
233242
itemValue="id"
234243
selectable
235244
selectStrategy="independent"
245+
itemsRegistration={ itemsRegistration }
236246
/>
237247
))
238248

@@ -257,6 +267,7 @@ describe.each([
257267
itemValue="id"
258268
selectable
259269
selectStrategy="single-independent"
270+
itemsRegistration={ itemsRegistration }
260271
/>
261272
))
262273

@@ -279,6 +290,7 @@ describe.each([
279290
itemValue="id"
280291
selectable
281292
selectStrategy="classic"
293+
itemsRegistration={ itemsRegistration }
282294
/>
283295
))
284296

@@ -301,6 +313,7 @@ describe.each([
301313
items={ items }
302314
itemValue="id"
303315
returnObject
316+
itemsRegistration={ itemsRegistration }
304317
/>
305318
))
306319

@@ -317,6 +330,7 @@ describe.each([
317330
items={ items }
318331
itemValue="id"
319332
returnObject
333+
itemsRegistration={ itemsRegistration }
320334
/>
321335
))
322336

@@ -335,6 +349,7 @@ describe.each([
335349
items={ items }
336350
itemValue="id"
337351
returnObject
352+
itemsRegistration={ itemsRegistration }
338353
/>
339354
))
340355

@@ -389,6 +404,7 @@ describe.each([
389404
activatable
390405
activeStrategy="leaf"
391406
returnObject
407+
itemsRegistration={ itemsRegistration }
392408
/>
393409
))
394410

@@ -416,6 +432,7 @@ describe.each([
416432
activatable
417433
activeStrategy="independent"
418434
returnObject
435+
itemsRegistration={ itemsRegistration }
419436
/>
420437
))
421438

@@ -453,6 +470,7 @@ describe.each([
453470
activatable
454471
activeStrategy="single-independent"
455472
returnObject
473+
itemsRegistration={ itemsRegistration }
456474
/>
457475
))
458476

@@ -487,6 +505,7 @@ describe.each([
487505
returnObject
488506
selectable
489507
selectStrategy="single-leaf"
508+
itemsRegistration={ itemsRegistration }
490509
/>
491510
))
492511

@@ -513,6 +532,7 @@ describe.each([
513532
returnObject
514533
selectable
515534
selectStrategy="leaf"
535+
itemsRegistration={ itemsRegistration }
516536
/>
517537
))
518538

@@ -542,6 +562,7 @@ describe.each([
542562
returnObject
543563
selectable
544564
selectStrategy="independent"
565+
itemsRegistration={ itemsRegistration }
545566
/>
546567
))
547568

@@ -580,6 +601,7 @@ describe.each([
580601
returnObject
581602
selectable
582603
selectStrategy="single-independent"
604+
itemsRegistration={ itemsRegistration }
583605
/>
584606
))
585607

@@ -608,6 +630,7 @@ describe.each([
608630
selectable
609631
returnObject
610632
selectStrategy="classic"
633+
itemsRegistration={ itemsRegistration }
611634
/>
612635
))
613636

@@ -645,6 +668,7 @@ describe.each([
645668
itemValue="id"
646669
openAll
647670
returnObject
671+
itemsRegistration={ itemsRegistration }
648672
/>
649673
))
650674

@@ -667,6 +691,7 @@ describe.each([
667691
openAll
668692
items={ items }
669693
itemValue="id"
694+
itemsRegistration={ itemsRegistration }
670695
/>
671696
))
672697

@@ -685,6 +710,7 @@ describe.each([
685710
itemValue="id"
686711
openOnClick
687712
returnObject
713+
itemsRegistration={ itemsRegistration }
688714
>
689715
{{
690716
prepend: ({ isOpen }) => (<span class="prepend-is-open">{ `${isOpen}` }</span>),

0 commit comments

Comments
 (0)