Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Adapt unit tests to git 1.8 used for HappyPath tests
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Zatsarynnyi <[email protected]>
  • Loading branch information
azatsarynnyy committed Jun 20, 2021
1 parent b751774 commit c299f59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generator/tests/init-sources/init-sources.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ describe('Test Extensions', () => {
});

function initGit(cwd: string) {
cp.execSync('git init -b main', { cwd });
cp.execSync('git init', { cwd });
cp.execSync('git checkout -b main', { cwd });
cp.execSync('git config --local user.name "test user"', { cwd });
cp.execSync('git config --local user.email [email protected]', { cwd });
cp.execSync(`git add ${cwd}`, { cwd });
Expand Down

0 comments on commit c299f59

Please sign in to comment.