diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-27 17:44:40 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-27 17:44:40 +0200 |
commit | 19f7523a4590fd41792d22d662bd6f5cf2bfead0 (patch) | |
tree | 2225d0a2f5731c24f4d2224c8abdf0544cf4785c /test/unit/blob.unit.test.ts | |
parent | 055a58e79fb225978d64a3c8e3e25377cc2a5ece (diff) |
Made the unit test structure more consistent
Diffstat (limited to 'test/unit/blob.unit.test.ts')
-rw-r--r-- | test/unit/blob.unit.test.ts | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/unit/blob.unit.test.ts b/test/unit/blob.unit.test.ts index efb7071..1771255 100644 --- a/test/unit/blob.unit.test.ts +++ b/test/unit/blob.unit.test.ts @@ -6,17 +6,19 @@ import { Blob } from "../../packages/server/src/git/blob"; const env = process.env as EnvironmentVariables; describe("Blob", () => { - it("Should the get a blob from a path in a tree", async() => { - expect.assertions(2); + describe("Class methods", () => { + it("Should the get a blob from a path in a tree", async() => { + expect.assertions(2); - const tree = await Tree.ofRepository(await Repository.open(env.BASE_DIR, env.AVAIL_REPO)); - const blob = await Blob.fromPath(tree, "packages/client/src/main.ts"); + const tree = await Tree.ofRepository(await Repository.open(env.BASE_DIR, env.AVAIL_REPO)); + const blob = await Blob.fromPath(tree, "packages/client/src/main.ts"); - expect(blob).toBeDefined(); - expect(blob).toBeInstanceOf(Blob); + expect(blob).toBeDefined(); + expect(blob).toBeInstanceOf(Blob); + }); }); - describe("Methods", () => { + describe("Instance methods", () => { let blob: Blob; beforeAll(async() => { |