Fixing matching condition

Signed-off-by: cmoulliard <cmoulliard@redhat.com>
This commit is contained in:
cmoulliard
2023-12-20 14:25:30 +01:00
parent 31e0e51bb9
commit 3bff96fc38
@@ -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,
},
});
});