Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalgn committed Oct 8, 2020
1 parent 234debb commit 8e9074f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/git.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test("clone creates the target directory", async () => {
await tmpdir(async path => {
await init(`${path}/origin`);
await commit(`${path}/origin`);
await git.clone(`file://${path}/origin`, `${path}/ws`, "master", 1);
await git.clone(`${path}/origin`, `${path}/ws`, "master", 1);
expect(await fse.exists(`${path}/ws`)).toBe(true);
});
});
Expand All @@ -41,7 +41,7 @@ test("fetchUntilMergeBase finds the correct merge base", async () => {
await commit(origin, "master %d", 20);

const ws = `${path}/ws`;
await git.clone(`file://${path}/origin`, ws, "br1");
await git.clone(`${path}/origin`, ws, "br1");
await git.fetch(ws, "master");
expect(await git.fetchUntilMergeBase(ws, "master", 10000)).toBe(base);
});
Expand All @@ -63,7 +63,7 @@ test("fetchUntilMergeBase finds the earliest merge base 1", async () => {
await commit(origin, "master after merge %d", 10);

const ws = `${path}/ws`;
await git.clone(`file://${path}/origin`, ws, "br1");
await git.clone(`${path}/origin`, ws, "br1");
await git.fetch(ws, "master");
expect(await git.fetchUntilMergeBase(ws, "master", 10000)).toBe(base);
});
Expand All @@ -90,7 +90,7 @@ test("fetchUntilMergeBase finds the earliest merge base 2", async () => {
await git.git(origin, "merge", "--no-ff", "br2");

const ws = `${path}/ws`;
await git.clone(`file://${path}/origin`, ws, "br1");
await git.clone(`${path}/origin`, ws, "br1");
await git.fetch(ws, "master");
expect(await git.fetchUntilMergeBase(ws, "master", 10000)).toBe(base);
});
Expand Down

0 comments on commit 8e9074f

Please sign in to comment.