Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test: Add test case for getCommitMessage() (#276)
  • Loading branch information
Shohei Ueda authored and GitHub committed May 4, 2020
1 parent b0da6c0 commit 5041814
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions __tests__/git-utils.test.ts
Expand Up @@ -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');
});
});

0 comments on commit 5041814

Please sign in to comment.