Skip to content

Commit fa619fd

Browse files
committed
remove 'g' from commits
Signed-off-by: shmck <[email protected]>
1 parent 80ff618 commit fa619fd

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

tests/parse.test.ts

+18-17
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ The first step
437437
expect(result.levels[0].steps[0]).toEqual(expected.levels[0].steps[0]);
438438
});
439439

440-
it("should load the full config for a step", () => {
440+
it("should load the full config for multiple levels & steps", () => {
441441
const md = `# Title
442442
443443
Description.
@@ -524,12 +524,13 @@ The third step
524524
text: md,
525525
config,
526526
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"],
533534
},
534535
});
535536
const expected = {
@@ -547,15 +548,15 @@ The third step
547548
id: "L1S1",
548549
content: "The first step",
549550
setup: {
550-
commits: ["abcdefg1", "123456789"],
551+
commits: ["abcdef1", "123456789"],
551552
commands: ["npm install"],
552553
files: ["someFile.js"],
553554
watchers: ["someFile.js"],
554555
filter: "someFilter",
555556
subtasks: true,
556557
},
557558
solution: {
558-
commits: ["1gfedcba", "987654321"],
559+
commits: ["1fedcba", "987654321"],
559560
commands: ["npm install"],
560561
files: ["someFile.js"],
561562
},
@@ -564,15 +565,15 @@ The third step
564565
id: "L1S2",
565566
content: "The second step",
566567
setup: {
567-
commits: ["2abcdefg"],
568+
commits: ["2abcdef"],
568569
commands: ["npm install"],
569570
files: ["someFile.js"],
570571
watchers: ["someFile.js"],
571572
filter: "someFilter",
572573
subtasks: true,
573574
},
574575
solution: {
575-
commits: ["3abcdefg"],
576+
commits: ["3abcdef"],
576577
commands: ["npm install"],
577578
files: ["someFile.js"],
578579
},
@@ -589,15 +590,15 @@ The third step
589590
id: "L2S1",
590591
content: "The third step",
591592
setup: {
592-
commits: ["4abcdefg"],
593+
commits: ["4abcdef"],
593594
commands: ["npm install"],
594595
files: ["someFile.js"],
595596
watchers: ["someFile.js"],
596597
filter: "someFilter",
597598
subtasks: true,
598599
},
599600
solution: {
600-
commits: ["5abcdefg"],
601+
commits: ["5abcdef"],
601602
commands: ["npm install"],
602603
files: ["someFile.js"],
603604
},
@@ -639,7 +640,7 @@ The first step
639640
text: md,
640641
config,
641642
commits: {
642-
L1S1Q: ["abcdefg1", "123456789"],
643+
L1S1Q: ["abcdef1", "123456789"],
643644
},
644645
});
645646
const expected = {
@@ -657,7 +658,7 @@ The first step
657658
id: "L1S1",
658659
content: "The first step",
659660
setup: {
660-
commits: ["abcdefg1", "123456789"],
661+
commits: ["abcdef1", "123456789"],
661662
},
662663
},
663664
],
@@ -684,7 +685,7 @@ Description.
684685
},
685686
directory: "coderoad",
686687
setup: {
687-
commits: ["abcdefg1"],
688+
commits: ["abcdef1"],
688689
commands: [],
689690
},
690691
},
@@ -721,7 +722,7 @@ Description.
721722
},
722723
directory: "coderoad",
723724
setup: {
724-
commits: ["abcdefg1"],
725+
commits: ["abcdef1"],
725726
commands: [],
726727
},
727728
},

0 commit comments

Comments
 (0)