From 19f7523a4590fd41792d22d662bd6f5cf2bfead0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 27 Jul 2021 17:44:40 +0200 Subject: Made the unit test structure more consistent --- test/unit/tree.unit.test.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'test/unit/tree.unit.test.ts') diff --git a/test/unit/tree.unit.test.ts b/test/unit/tree.unit.test.ts index f3ed635..47a716d 100644 --- a/test/unit/tree.unit.test.ts +++ b/test/unit/tree.unit.test.ts @@ -7,16 +7,18 @@ import { EnvironmentVariables } from "../util"; const env = process.env as EnvironmentVariables; describe("Tree", () => { - it("Should get the tree of a repository", async() => { - expect.assertions(2); + describe("Class methods", () => { + it("Should get the tree of a repository", async() => { + expect.assertions(2); - const tree = await Tree.ofRepository(await Repository.open(env.BASE_DIR, env.AVAIL_REPO)); + const tree = await Tree.ofRepository(await Repository.open(env.BASE_DIR, env.AVAIL_REPO)); - expect(tree).toBeDefined(); - expect(tree).toBeInstanceOf(Tree); + expect(tree).toBeDefined(); + expect(tree).toBeInstanceOf(Tree); + }); }); - describe("Methods", () => { + describe("Instance methods", () => { let tree: Tree; beforeAll(async() => { -- cgit v1.2.3-18-g5258