diff --git a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/helpers.test.ts b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/helpers.test.ts index 87b88eb53e..60ab84a964 100644 --- a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/helpers.test.ts +++ b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/helpers.test.ts @@ -43,23 +43,6 @@ describe('initRepoAndPush', () => { jest.clearAllMocks(); }); - describe('resolves the commitHash properly', () => { - it('resolves the correct hash', () => { - const commitHash = initRepoAndPush({ - dir: '/test/repo/dir/', - remoteUrl: 'git@github.com:test/repo.git', - auth: { - username: 'test-user', - password: 'test-password', - }, - logger: getVoidLogger(), - }); - expect(Promise.resolve(commitHash)).toEqual({ - commitHash: '220f19cc36b551763d157f1b5e4a4b446165dbd6', - }); - }); - }); - describe('with minimal parameters', () => { beforeEach(async () => { await initRepoAndPush({ @@ -187,23 +170,6 @@ describe('commitAndPushRepo', () => { jest.clearAllMocks(); }); - describe('resolves the commitHash properly', () => { - it('resolves to the commitHash', () => { - const commitHash = commitAndPushRepo({ - dir: '/test/repo/dir/', - auth: { - username: 'test-user', - password: 'test-password', - }, - logger: getVoidLogger(), - commitMessage: 'commit message', - }); - expect(Promise.resolve(commitHash)).toStrictEqual({ - commitHash: '220f19cc36b551763d157f1b5e4a4b446165dbd6', - }); - }); - }); - describe('with minimal parameters', () => { beforeEach(async () => { await commitAndPushRepo({