diff --git a/lib/modules/platform/gerrit/index.spec.ts b/lib/modules/platform/gerrit/index.spec.ts index 692dad06d9..17fa9e54de 100644 --- a/lib/modules/platform/gerrit/index.spec.ts +++ b/lib/modules/platform/gerrit/index.spec.ts @@ -708,6 +708,13 @@ describe('modules/platform/gerrit/index', () => { //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', () => { it('deleteLabel()', async () => { await expect(