Update plugins/scaffolder-backend-module-gitlab/src/actions/createProjectDeployToken.test.ts
Co-authored-by: Andreas Berger <Andy2003@users.noreply.github.com> Signed-off-by: Dominik <dominik@pfaffenbauer.at>
This commit is contained in:
committed by
Dominik Pfaffenbauer
parent
37cfd93473
commit
d8eb1f0707
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user