@@ -8,12 +8,12 @@ describe('arrayToTree', () => {
8
8
{ id : '31' , parentId : '4' , custom : '12' } ,
9
9
{ id : '1941' , parentId : '418' , custom : 'de' } ,
10
10
{ id : '1' , parentId : '418' , custom : 'ZZZz' } ,
11
- { id : '418' , parentId : null , custom : 'ü' } ,
11
+ { id : '418' , parentId : null , custom : 'ü' } ,
12
12
] ) ) . to . deep . equal ( [
13
13
{ data : { id : '4' , parentId : null , custom : 'abc' } , children : [
14
14
{ data : { id : '31' , parentId : '4' , custom : '12' } , children : [ ] } ,
15
15
] } ,
16
- { data : { id : '418' , parentId : null , custom : 'ü' } , children : [
16
+ { data : { id : '418' , parentId : null , custom : 'ü' } , children : [
17
17
{ data : { id : '1941' , parentId : '418' , custom : 'de' } , children : [ ] } ,
18
18
{ data : { id : '1' , parentId : '418' , custom : 'ZZZz' } , children : [ ] } ,
19
19
] } ,
@@ -27,14 +27,14 @@ describe('arrayToTree', () => {
27
27
{ num : '31' , ref : '4' , custom : '12' } ,
28
28
{ num : '1941' , ref : '418' , custom : 'de' } ,
29
29
{ num : '1' , ref : '418' , custom : 'ZZZz' } ,
30
- { num : '418' , ref : null , custom : 'ü' } ,
30
+ { num : '418' , ref : null , custom : 'ü' } ,
31
31
] as any ) ,
32
32
{ id : 'num' , parentId : 'ref' } ,
33
33
) ) . to . deep . equal ( [
34
34
{ data : { num : '4' , ref : null , custom : 'abc' } , children : [
35
35
{ data : { num : '31' , ref : '4' , custom : '12' } , children : [ ] } ,
36
36
] } ,
37
- { data : { num : '418' , ref : null , custom : 'ü' } , children : [
37
+ { data : { num : '418' , ref : null , custom : 'ü' } , children : [
38
38
{ data : { num : '1941' , ref : '418' , custom : 'de' } , children : [ ] } ,
39
39
{ data : { num : '1' , ref : '418' , custom : 'ZZZz' } , children : [ ] } ,
40
40
] } ,
0 commit comments