Skip to content

Commit 5041814

Browse files
authored
test: Add test case for getCommitMessage() (#276)
1 parent b0da6c0 commit 5041814

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

__tests__/git-utils.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,15 @@ describe('getCommitMessage()', () => {
169169
);
170170
expect(test).toMatch('Full custom msg');
171171
});
172+
173+
test('get full custom message for external repository', () => {
174+
const test = getCommitMessage(
175+
'',
176+
'Full custom msg',
177+
'actions/actions.github.io',
178+
'actions/pages',
179+
'commit_hash'
180+
);
181+
expect(test).toMatch('Full custom msg');
182+
});
172183
});

0 commit comments

Comments
 (0)