aboutsummaryrefslogtreecommitdiff
path: root/test/unit/patch.unit.test.ts
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-08-12 15:37:30 +0200
committerHampusM <hampus@hampusmat.com>2021-08-12 15:37:30 +0200
commitd41b27f43335cfb1a8ff49aeb121f992332429cf (patch)
tree93b6e1ec9b292c3d80ee1a538d0e729612148052 /test/unit/patch.unit.test.ts
parent30f0b2ee1f494be1786280040fb47ec18bde8a6d (diff)
Cleaned up the settings implementation & renamed base_dir project-wide to git_dir
Diffstat (limited to 'test/unit/patch.unit.test.ts')
-rw-r--r--test/unit/patch.unit.test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/patch.unit.test.ts b/test/unit/patch.unit.test.ts
index 3197059..d011825 100644
--- a/test/unit/patch.unit.test.ts
+++ b/test/unit/patch.unit.test.ts
@@ -10,7 +10,7 @@ describe("Patch", () => {
it("Should get a patch from a diff", async() => {
expect.assertions(2);
- const repository = await Repository.open(env.BASE_DIR, env.AVAIL_REPO);
+ const repository = await Repository.open(env.GIT_DIR, env.AVAIL_REPO);
const commit = await Commit.lookup(repository, "d856031c58e26992f3e0a481084a190a50b0bcf7");
const patch = await Patch.fromDiff(await commit.diff(), 1);
@@ -22,7 +22,7 @@ describe("Patch", () => {
it("Should get all patches from a diff", async() => {
expect.hasAssertions();
- const repository = await Repository.open(env.BASE_DIR, env.AVAIL_REPO);
+ const repository = await Repository.open(env.GIT_DIR, env.AVAIL_REPO);
const commit = await Commit.lookup(repository, "7b3292af22a0496007e974b65cd2e34521c9c429");
const patches = await Patch.allFromDiff(await commit.diff());
@@ -42,7 +42,7 @@ describe("Patch", () => {
let patch: Patch;
beforeAll(async() => {
- repository = await Repository.open(env.BASE_DIR, env.AVAIL_REPO);
+ repository = await Repository.open(env.GIT_DIR, env.AVAIL_REPO);
const commit = await Commit.lookup(repository, "7b3292af22a0496007e974b65cd2e34521c9c429");
patch = await Patch.fromDiff(await commit.diff(), 4);