Skip to content

Commit

Permalink
test(engine): branch와 tag가 없는 테스트케이스 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yoouyeon committed Oct 4, 2024
1 parent 6082947 commit ff5f544
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/analysis-engine/src/parser.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ describe("getCommitRaws", () => {
tags: ["v2.0.0", "v1.4"],
},
],
[
`${COMMIT_SEPARATOR}${fakeCommitHash}${GIT_LOG_SEPARATOR}${fakeAuthorAndCommitter}${fakeCommitMessage}`,
{
...commonExpectatedResult,
branches: [],
tags: [],
},
],
])("should parse gitlog to commitRaw(branch, tag)", (mockLog, expectedResult) => {
const result = getCommitRaws(mockLog);
expect(result).toEqual([expectedResult]);
Expand Down

0 comments on commit ff5f544

Please sign in to comment.