diff --git a/plugins/scaffolder-backend-module-gitlab/src/actions/createProjectDeployToken.test.ts b/plugins/scaffolder-backend-module-gitlab/src/actions/createProjectDeployToken.test.ts index bba1c6516b..8abf0d7403 100644 --- a/plugins/scaffolder-backend-module-gitlab/src/actions/createProjectDeployToken.test.ts +++ b/plugins/scaffolder-backend-module-gitlab/src/actions/createProjectDeployToken.test.ts @@ -72,6 +72,11 @@ describe('gitlab:create-deploy-token', () => { }); it('should work when there is a token provided through ctx.input', async () => { + mockGitlabClient.ProjectDeployTokens.add.mockResolvedValue({ + token: 'TOKEN', + username: 'User', + }); + await action.handler({ ...mockContext, input: {