diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/commit.unit.test.ts | 2 | ||||
-rw-r--r-- | test/unit/diff.unit.test.ts | 2 | ||||
-rw-r--r-- | test/unit/repository.unit.test.ts | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/commit.unit.test.ts b/test/unit/commit.unit.test.ts index abbdb9a..137c64c 100644 --- a/test/unit/commit.unit.test.ts +++ b/test/unit/commit.unit.test.ts @@ -48,7 +48,7 @@ describe("Commit", () => { let commit: Commit; beforeAll(async() => { - commit = await repository.masterCommit(); + commit = await repository.head(); }); it("Should get the stats", async() => { diff --git a/test/unit/diff.unit.test.ts b/test/unit/diff.unit.test.ts index 5d30ec5..ed4061b 100644 --- a/test/unit/diff.unit.test.ts +++ b/test/unit/diff.unit.test.ts @@ -11,7 +11,7 @@ describe("Diff", () => { beforeAll(async() => { const repository = await Repository.open(env.BASE_DIR, env.AVAIL_REPO); - diff = await (await repository.masterCommit()).diff(); + diff = await (await repository.head()).diff(); }); describe("Instance methods", () => { diff --git a/test/unit/repository.unit.test.ts b/test/unit/repository.unit.test.ts index dd0d09b..66e32d4 100644 --- a/test/unit/repository.unit.test.ts +++ b/test/unit/repository.unit.test.ts @@ -104,10 +104,10 @@ describe("Repository", () => { await expect(repository.lookupExists(env.UNAVAIL_OBJECT)).resolves.toBeFalsy(); }); - it("Should get the master commit", async() => { + it("Should get the head commit", async() => { expect.assertions(8); - const master_commit = await repository.masterCommit(); + const master_commit = await repository.head(); expect(master_commit).toBeDefined(); expect(master_commit).toBeInstanceOf(Commit); |