From 3bff96fc389c8983a66603983a9a60e4462d87f2 Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Wed, 20 Dec 2023 14:25:30 +0100 Subject: [PATCH] Fixing matching condition Signed-off-by: cmoulliard --- .../src/actions/gitea.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/scaffolder-backend-module-gitea/src/actions/gitea.test.ts b/plugins/scaffolder-backend-module-gitea/src/actions/gitea.test.ts index 6290b2b33d..4be82a0e12 100644 --- a/plugins/scaffolder-backend-module-gitea/src/actions/gitea.test.ts +++ b/plugins/scaffolder-backend-module-gitea/src/actions/gitea.test.ts @@ -38,7 +38,6 @@ describe('publish:gitea', () => { gitea: [ { host: 'gitea.com', - baseUrl: 'https://gitea.com', username: 'gitea_user', password: 'gitea_password', }, @@ -93,10 +92,8 @@ describe('publish:gitea', () => { 'Basic Z2l0ZWFfdXNlcjpnaXRlYV9wYXNzd29yZA==', ); expect(req.body).toEqual({ - create_empty_commit: false, - owners: ['owner'], + name: 'repo', description, - parent: 'workspace', }); return res( ctx.status(201), @@ -120,8 +117,11 @@ describe('publish:gitea', () => { defaultBranch: 'main', auth: { username: 'gitea_user', password: 'gitea_password' }, logger: mockContext.logger, - commitMessage: 'initial commit', - gitAuthorInfo: {}, + commitMessage: expect.stringContaining('initial commit\n\nChange-Id:'), + gitAuthorInfo: { + email: undefined, + name: undefined, + }, }); });