Final test fixes
Signed-off-by: Lukas Fruntke (external expert on behalf of DB Netz) <lukas.fruntke-extern@deutschebahn.com>
This commit is contained in:
parent
608b44ef49
commit
0e3f44132a
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user