Skip to content

Commit

Permalink
test: Add test case for getCommitMessage() (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris 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
Original file line number Diff line number Diff line change
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.