mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 06:33:17 +08:00
test: Add test case for getCommitMessage() (#276)
This commit is contained in:
parent
b0da6c009f
commit
504181401b
@ -169,4 +169,15 @@ describe('getCommitMessage()', () => {
|
|||||||
);
|
);
|
||||||
expect(test).toMatch('Full custom msg');
|
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');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user