From 8c6a59cd766fead4998c957d86a0e33fd58d1cde Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 5 Aug 2021 17:03:36 +0200 Subject: The tree API has a branch query param & made repository branch less hardcoded --- test/unit/diff.unit.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/diff.unit.test.ts') 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", () => { -- cgit v1.2.3-18-g5258