This commit is contained in:
Andrea Lamparelli 2022-12-23 19:38:57 +01:00
parent 74703c48f3
commit 8828684a38
6 changed files with 13 additions and 14 deletions

View file

@ -74,7 +74,7 @@ beforeEach(() => {
describe("git cli service", () => {
test("version", async () => {
const result = await git.version();
const result = await git.version(cwd);
const actualVersion = spawnSync("git", ["version"]).stdout.toString();
const match = actualVersion.match(/(\d+\.\d+(\.\d+)?)/);
if (match) {