diff --git a/packages/analysis-engine/src/parser.spec.ts b/packages/analysis-engine/src/parser.spec.ts index d4334723..758fc122 100644 --- a/packages/analysis-engine/src/parser.spec.ts +++ b/packages/analysis-engine/src/parser.spec.ts @@ -127,9 +127,9 @@ describe("getCommitRaws", () => { }); }); - testCommitFileChanges.forEach((mockLog, index) => { + testCommitFileChanges.forEach((fileChange, index) => { it(`should parse gitlog to commitRaw(file changed)`, () => { - const mock = `${COMMIT_SEPARATOR}${testCommitHashAndRefs[0]}${testAuthorAndCommitter}${testCommitMessage}\n${mockLog}`; + const mock = `${COMMIT_SEPARATOR}${testCommitHashAndRefs[0]}${testAuthorAndCommitter}${testCommitMessage}\n${fileChange}`; const result = getCommitRaws(mock); const expectedResult = { ...commonExpectatedResult, differenceStatistic: expectedFileChanged[index] };