aboutsummaryrefslogtreecommitdiff
path: root/test/unit/diff.unit.test.ts
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-25 14:56:58 +0200
committerHampusM <hampus@hampusmat.com>2021-07-25 14:56:58 +0200
commit7b3292af22a0496007e974b65cd2e34521c9c429 (patch)
tree8205726e27fa7e5f80cd2a7ffb6c7354a11b6dea /test/unit/diff.unit.test.ts
parent4f5771726aa8c7b6d4e288df2a79f1ffef55c3a3 (diff)
Reformated unit tests & the setup and teardown scripts
Diffstat (limited to 'test/unit/diff.unit.test.ts')
-rw-r--r--test/unit/diff.unit.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/diff.unit.test.ts b/test/unit/diff.unit.test.ts
index 2021987..1fb164f 100644
--- a/test/unit/diff.unit.test.ts
+++ b/test/unit/diff.unit.test.ts
@@ -8,14 +8,14 @@ const env = process.env as EnvironmentVariables;
describe("Diff", () => {
let diff: Diff;
- beforeAll(async () => {
+ beforeAll(async() => {
const repository = await Repository.open(env.BASE_DIR, env.AVAIL_REPO);
diff = await (await repository.masterCommit()).diff();
});
describe("Methods", () => {
- it("Should get the raw patches", async () => {
+ it("Should get the raw patches", async() => {
expect.assertions(2);
const raw_patches = await diff.rawPatches();
@@ -24,7 +24,7 @@ describe("Diff", () => {
expect(typeof raw_patches).toEqual("string");
});
- it("Should get the header data", async () => {
+ it("Should get the header data", async() => {
expect.assertions(4);
const patch_header_data = await diff.patchHeaderData();
@@ -36,7 +36,7 @@ describe("Diff", () => {
expect(patch_header_data).toHaveProperty("last");
});
- it("Should get the patches", async () => {
+ it("Should get the patches", async() => {
expect.hasAssertions();
const patches = await diff.patches();