aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/commit.unit.test.ts4
-rw-r--r--test/unit/repository.unit.test.ts12
2 files changed, 8 insertions, 8 deletions
diff --git a/test/unit/commit.unit.test.ts b/test/unit/commit.unit.test.ts
index b37e9cf..5c4d8c7 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.latestCommit();
+ commit = await repository.masterCommit();
});
it("Gets the stats", async () => {
@@ -81,4 +81,4 @@ describe("Commit", () => {
expect(tree).toBeInstanceOf(Tree);
});
});
-}); \ No newline at end of file
+});
diff --git a/test/unit/repository.unit.test.ts b/test/unit/repository.unit.test.ts
index 86ac55e..b11b236 100644
--- a/test/unit/repository.unit.test.ts
+++ b/test/unit/repository.unit.test.ts
@@ -68,15 +68,15 @@ describe("Repository", () => {
await expect(repository.lookupExists(env.UNAVAIL_OBJECT)).resolves.toBeFalsy();
});
- it("Gets the latest commit", async () => {
+ it("Gets the master commit", async () => {
expect.assertions(8);
- const latest_commit = await repository.latestCommit();
+ const master_commit = await repository.masterCommit();
- expect(latest_commit).toBeDefined();
- expect(latest_commit).toBeInstanceOf(Commit);
+ expect(master_commit).toBeDefined();
+ expect(master_commit).toBeInstanceOf(Commit);
- expectCommitProperties(latest_commit);
+ expectCommitProperties(master_commit);
});
it("Gets the commits", async () => {
@@ -135,4 +135,4 @@ describe("Repository", () => {
}
});
});
-}); \ No newline at end of file
+});