aboutsummaryrefslogtreecommitdiff
path: root/test/unit/tree.unit.test.ts
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-27 17:44:40 +0200
committerHampusM <hampus@hampusmat.com>2021-07-27 17:44:40 +0200
commit19f7523a4590fd41792d22d662bd6f5cf2bfead0 (patch)
tree2225d0a2f5731c24f4d2224c8abdf0544cf4785c /test/unit/tree.unit.test.ts
parent055a58e79fb225978d64a3c8e3e25377cc2a5ece (diff)
Made the unit test structure more consistent
Diffstat (limited to 'test/unit/tree.unit.test.ts')
-rw-r--r--test/unit/tree.unit.test.ts14
1 files changed, 8 insertions, 6 deletions
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() => {