@@ -437,7 +437,7 @@ The first step
437
437
expect ( result . levels [ 0 ] . steps [ 0 ] ) . toEqual ( expected . levels [ 0 ] . steps [ 0 ] ) ;
438
438
} ) ;
439
439
440
- it ( "should load the full config for a step " , ( ) => {
440
+ it ( "should load the full config for multiple levels & steps " , ( ) => {
441
441
const md = `# Title
442
442
443
443
Description.
@@ -524,12 +524,13 @@ The third step
524
524
text : md ,
525
525
config,
526
526
commits : {
527
- L1S1Q : [ "abcdefg1" , "123456789" ] ,
528
- L1S1A : [ "1gfedcba" , "987654321" ] ,
529
- L1S2Q : [ "2abcdefg" ] ,
530
- L1S2A : [ "3abcdefg" ] ,
531
- L2S1Q : [ "4abcdefg" ] ,
532
- L2S1A : [ "5abcdefg" ] ,
527
+ INIT : [ "" ] ,
528
+ L1S1Q : [ "abcdef1" , "123456789" ] ,
529
+ L1S1A : [ "1fedcba" , "987654321" ] ,
530
+ L1S2Q : [ "2abcdef" ] ,
531
+ L1S2A : [ "3abcdef" ] ,
532
+ L2S1Q : [ "4abcdef" ] ,
533
+ L2S1A : [ "5abcdef" ] ,
533
534
} ,
534
535
} ) ;
535
536
const expected = {
@@ -547,15 +548,15 @@ The third step
547
548
id : "L1S1" ,
548
549
content : "The first step" ,
549
550
setup : {
550
- commits : [ "abcdefg1 " , "123456789" ] ,
551
+ commits : [ "abcdef1 " , "123456789" ] ,
551
552
commands : [ "npm install" ] ,
552
553
files : [ "someFile.js" ] ,
553
554
watchers : [ "someFile.js" ] ,
554
555
filter : "someFilter" ,
555
556
subtasks : true ,
556
557
} ,
557
558
solution : {
558
- commits : [ "1gfedcba " , "987654321" ] ,
559
+ commits : [ "1fedcba " , "987654321" ] ,
559
560
commands : [ "npm install" ] ,
560
561
files : [ "someFile.js" ] ,
561
562
} ,
@@ -564,15 +565,15 @@ The third step
564
565
id : "L1S2" ,
565
566
content : "The second step" ,
566
567
setup : {
567
- commits : [ "2abcdefg " ] ,
568
+ commits : [ "2abcdef " ] ,
568
569
commands : [ "npm install" ] ,
569
570
files : [ "someFile.js" ] ,
570
571
watchers : [ "someFile.js" ] ,
571
572
filter : "someFilter" ,
572
573
subtasks : true ,
573
574
} ,
574
575
solution : {
575
- commits : [ "3abcdefg " ] ,
576
+ commits : [ "3abcdef " ] ,
576
577
commands : [ "npm install" ] ,
577
578
files : [ "someFile.js" ] ,
578
579
} ,
@@ -589,15 +590,15 @@ The third step
589
590
id : "L2S1" ,
590
591
content : "The third step" ,
591
592
setup : {
592
- commits : [ "4abcdefg " ] ,
593
+ commits : [ "4abcdef " ] ,
593
594
commands : [ "npm install" ] ,
594
595
files : [ "someFile.js" ] ,
595
596
watchers : [ "someFile.js" ] ,
596
597
filter : "someFilter" ,
597
598
subtasks : true ,
598
599
} ,
599
600
solution : {
600
- commits : [ "5abcdefg " ] ,
601
+ commits : [ "5abcdef " ] ,
601
602
commands : [ "npm install" ] ,
602
603
files : [ "someFile.js" ] ,
603
604
} ,
@@ -639,7 +640,7 @@ The first step
639
640
text : md ,
640
641
config,
641
642
commits : {
642
- L1S1Q : [ "abcdefg1 " , "123456789" ] ,
643
+ L1S1Q : [ "abcdef1 " , "123456789" ] ,
643
644
} ,
644
645
} ) ;
645
646
const expected = {
@@ -657,7 +658,7 @@ The first step
657
658
id : "L1S1" ,
658
659
content : "The first step" ,
659
660
setup : {
660
- commits : [ "abcdefg1 " , "123456789" ] ,
661
+ commits : [ "abcdef1 " , "123456789" ] ,
661
662
} ,
662
663
} ,
663
664
] ,
@@ -684,7 +685,7 @@ Description.
684
685
} ,
685
686
directory : "coderoad" ,
686
687
setup : {
687
- commits : [ "abcdefg1 " ] ,
688
+ commits : [ "abcdef1 " ] ,
688
689
commands : [ ] ,
689
690
} ,
690
691
} ,
@@ -721,7 +722,7 @@ Description.
721
722
} ,
722
723
directory : "coderoad" ,
723
724
setup : {
724
- commits : [ "abcdefg1 " ] ,
725
+ commits : [ "abcdef1 " ] ,
725
726
commands : [ ] ,
726
727
} ,
727
728
} ,
0 commit comments