aboutsummaryrefslogtreecommitdiff
path: root/test/unit/tree.unit.test.ts
diff options
context:
space:
mode:
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() => {