From 504181401bb2df2de020ed72a7f2b4f8942bcb77 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Mon, 4 May 2020 10:06:41 +0900 Subject: [PATCH] test: Add test case for getCommitMessage() (#276) --- __tests__/git-utils.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/__tests__/git-utils.test.ts b/__tests__/git-utils.test.ts index 73b1166..5fd3af4 100644 --- a/__tests__/git-utils.test.ts +++ b/__tests__/git-utils.test.ts @@ -169,4 +169,15 @@ describe('getCommitMessage()', () => { ); expect(test).toMatch('Full custom msg'); }); + + test('get full custom message for external repository', () => { + const test = getCommitMessage( + '', + 'Full custom msg', + 'actions/actions.github.io', + 'actions/pages', + 'commit_hash' + ); + expect(test).toMatch('Full custom msg'); + }); });