mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-09 13:36:26 +00:00
Add tests for approvePrForAutomerge
This commit is contained in:
parent
b93ee7a628
commit
add6ca5720
1 changed files with 7 additions and 0 deletions
|
@ -708,6 +708,13 @@ describe('modules/platform/gerrit/index', () => {
|
||||||
//TODO: add some tests for Gerrit-specific replacements..
|
//TODO: add some tests for Gerrit-specific replacements..
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('approvePrForAutomerge()', () => {
|
||||||
|
it('approvePrForAutomerge() - calls approveChange', async () => {
|
||||||
|
await expect(gerrit.approvePrForAutomerge(123456)).toResolve();
|
||||||
|
expect(clientMock.approveChange).toHaveBeenCalledWith(123456);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe('currently unused/not-implemented functions', () => {
|
describe('currently unused/not-implemented functions', () => {
|
||||||
it('deleteLabel()', async () => {
|
it('deleteLabel()', async () => {
|
||||||
await expect(
|
await expect(
|
||||||
|
|
Loading…
Reference in a new issue