@@ -25,21 +25,21 @@ describe('buildTree of documents with one level of depth', () => {
2525 name : 'getting-started' ,
2626 fsPath : '1.getting-started' ,
2727 type : 'directory' ,
28- prefix : 1 ,
28+ prefix : '1' ,
2929 children : [
3030 {
3131 name : 'introduction' ,
3232 fsPath : '1.getting-started/2.introduction.md' ,
3333 type : 'file' ,
3434 routePath : '/getting-started/introduction' ,
35- prefix : 2 ,
35+ prefix : '2' ,
3636 } ,
3737 {
3838 name : 'installation' ,
3939 fsPath : '1.getting-started/3.installation.md' ,
4040 type : 'file' ,
4141 routePath : '/getting-started/installation' ,
42- prefix : 3 ,
42+ prefix : '3' ,
4343 } ,
4444 ] ,
4545 } ,
@@ -97,7 +97,7 @@ describe('buildTree of documents with one level of depth', () => {
9797 type : 'file' ,
9898 routePath : deletedDbItem . path ,
9999 status : TreeStatus . Deleted ,
100- prefix : 2 ,
100+ prefix : '2' ,
101101 } ,
102102 ] ,
103103 } ,
@@ -131,7 +131,7 @@ describe('buildTree of documents with one level of depth', () => {
131131 type : 'file' ,
132132 routePath : deletedDbItem . path ,
133133 status : TreeStatus . Deleted ,
134- prefix : 3 ,
134+ prefix : '3' ,
135135 } ,
136136 ] ,
137137 } ,
@@ -282,7 +282,7 @@ describe('buildTree of documents with one level of depth', () => {
282282 name : createdDbItem . path ! . split ( '/' ) . pop ( ) ! ,
283283 type : 'file' ,
284284 status : TreeStatus . Renamed ,
285- prefix : 2 ,
285+ prefix : '2' ,
286286 } ,
287287 ] ,
288288 } ,
@@ -296,27 +296,27 @@ describe('buildTree of documents with two levels of depth', () => {
296296 name : 'essentials' ,
297297 fsPath : '1.essentials' ,
298298 type : 'directory' ,
299- prefix : 1 ,
299+ prefix : '1' ,
300300 children : [
301301 {
302302 name : 'configuration' ,
303303 fsPath : '1.essentials/2.configuration.md' ,
304304 type : 'file' ,
305305 routePath : '/essentials/configuration' ,
306- prefix : 2 ,
306+ prefix : '2' ,
307307 } ,
308308 {
309309 name : 'nested' ,
310310 fsPath : '1.essentials/1.nested' ,
311311 type : 'directory' ,
312- prefix : 1 ,
312+ prefix : '1' ,
313313 children : [
314314 {
315315 name : 'advanced' ,
316316 fsPath : '1.essentials/1.nested/2.advanced.md' ,
317317 type : 'file' ,
318318 routePath : '/essentials/nested/advanced' ,
319- prefix : 2 ,
319+ prefix : '2' ,
320320 } ,
321321 ] ,
322322 } ,
@@ -424,7 +424,7 @@ describe('buildTree of documents with two levels of depth', () => {
424424 routePath : deletedDbItem . path ,
425425 type : 'file' ,
426426 status : TreeStatus . Deleted ,
427- prefix : 2 ,
427+ prefix : '2' ,
428428 } ,
429429 ] ,
430430 } ,
@@ -452,21 +452,21 @@ describe('buildTree of documents with language prefixed', () => {
452452 name : 'getting-started' ,
453453 fsPath : 'en/1.getting-started' ,
454454 type : 'directory' ,
455- prefix : 1 ,
455+ prefix : '1' ,
456456 children : [
457457 {
458458 name : 'introduction' ,
459459 fsPath : 'en/1.getting-started/2.introduction.md' ,
460460 type : 'file' ,
461461 routePath : '/en/getting-started/introduction' ,
462- prefix : 2 ,
462+ prefix : '2' ,
463463 } ,
464464 {
465465 name : 'installation' ,
466466 fsPath : 'en/1.getting-started/3.installation.md' ,
467467 type : 'file' ,
468468 routePath : '/en/getting-started/installation' ,
469- prefix : 3 ,
469+ prefix : '3' ,
470470 } ,
471471 ] ,
472472 } ,
0 commit comments