@@ -8,12 +8,12 @@ describe('arrayToTree', () => {
88 { id : '31' , parentId : '4' , custom : '12' } ,
99 { id : '1941' , parentId : '418' , custom : 'de' } ,
1010 { id : '1' , parentId : '418' , custom : 'ZZZz' } ,
11- { id : '418' , parentId : null , custom : 'ü' } ,
11+ { id : '418' , parentId : null , custom : 'ü' } ,
1212 ] ) ) . to . deep . equal ( [
1313 { data : { id : '4' , parentId : null , custom : 'abc' } , children : [
1414 { data : { id : '31' , parentId : '4' , custom : '12' } , children : [ ] } ,
1515 ] } ,
16- { data : { id : '418' , parentId : null , custom : 'ü' } , children : [
16+ { data : { id : '418' , parentId : null , custom : 'ü' } , children : [
1717 { data : { id : '1941' , parentId : '418' , custom : 'de' } , children : [ ] } ,
1818 { data : { id : '1' , parentId : '418' , custom : 'ZZZz' } , children : [ ] } ,
1919 ] } ,
@@ -27,14 +27,14 @@ describe('arrayToTree', () => {
2727 { num : '31' , ref : '4' , custom : '12' } ,
2828 { num : '1941' , ref : '418' , custom : 'de' } ,
2929 { num : '1' , ref : '418' , custom : 'ZZZz' } ,
30- { num : '418' , ref : null , custom : 'ü' } ,
30+ { num : '418' , ref : null , custom : 'ü' } ,
3131 ] as any ) ,
3232 { id : 'num' , parentId : 'ref' } ,
3333 ) ) . to . deep . equal ( [
3434 { data : { num : '4' , ref : null , custom : 'abc' } , children : [
3535 { data : { num : '31' , ref : '4' , custom : '12' } , children : [ ] } ,
3636 ] } ,
37- { data : { num : '418' , ref : null , custom : 'ü' } , children : [
37+ { data : { num : '418' , ref : null , custom : 'ü' } , children : [
3838 { data : { num : '1941' , ref : '418' , custom : 'de' } , children : [ ] } ,
3939 { data : { num : '1' , ref : '418' , custom : 'ZZZz' } , children : [ ] } ,
4040 ] } ,
0 commit comments