From d8eb1f0707c866b2252dfbab164fbdf7e4043035 Mon Sep 17 00:00:00 2001 From: Dominik Date: Thu, 16 Feb 2023 08:19:35 +0100 Subject: [PATCH] Update plugins/scaffolder-backend-module-gitlab/src/actions/createProjectDeployToken.test.ts Co-authored-by: Andreas Berger Signed-off-by: Dominik --- .../src/actions/createProjectDeployToken.test.ts | 5 +++++ 1 file changed, 5 insertions(+) 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: {