test: Add test case for getCommitMessage() (#276)

This commit is contained in:
Shohei Ueda 2020-05-04 10:06:41 +09:00 committed by GitHub
parent b0da6c009f
commit 504181401b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');
});
});