diff options
Diffstat (limited to 'test/unit/diff.unit.test.ts')
-rw-r--r-- | test/unit/diff.unit.test.ts | 8 |
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(); |