From 4183ba6e7160d540cea2bfabedfa11d656196efe Mon Sep 17 00:00:00 2001 From: yoouyeon Date: Thu, 5 Sep 2024 23:11:42 +0900 Subject: [PATCH] =?UTF-8?q?test(engine):=20mocklog=20=EC=97=90=EC=84=9C=20?= =?UTF-8?q?fileChange=EB=A1=9C=20=EC=9D=B4=EB=A6=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/analysis-engine/src/parser.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] };