diff options
author | HampusM <hampus@hampusmat.com> | 2021-08-15 15:03:44 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-08-15 15:03:44 +0200 |
commit | 9736749a779661a95211a91200617a03a1b9a702 (patch) | |
tree | 6bea5e5ec5773aa940e79e7e80c9ebac086eaa10 /test/unit/repository.unit.test.ts | |
parent | c32094d0b1fc3aa5160087d71bff36ed1779bc3a (diff) |
Added a count query parameter to the log API endpoint
Diffstat (limited to 'test/unit/repository.unit.test.ts')
-rw-r--r-- | test/unit/repository.unit.test.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/unit/repository.unit.test.ts b/test/unit/repository.unit.test.ts index 752cd59..9aaa748 100644 --- a/test/unit/repository.unit.test.ts +++ b/test/unit/repository.unit.test.ts @@ -3,7 +3,7 @@ import { Commit } from "server/src/git/commit"; import { Tree } from "server/src/git/tree"; import { Branch } from "server/src/git/branch"; import { Tag } from "server/src/git/tag"; -import { EnvironmentVariables, expectCommitProperties } from "../util"; +import { EnvironmentVariables } from "../util"; import { ServerError } from "server/src/git/error"; const env = process.env as EnvironmentVariables; @@ -105,14 +105,12 @@ describe("Repository", () => { }); it("Should get the head commit", async() => { - expect.assertions(8); + expect.assertions(2); const master_commit = await repository.head(); expect(master_commit).toBeDefined(); expect(master_commit).toBeInstanceOf(Commit); - - expectCommitProperties(master_commit); }); it("Should get the commits", async() => { @@ -125,8 +123,6 @@ describe("Repository", () => { for(const commit of commits) { expect(commit).toBeDefined(); expect(commit).toBeInstanceOf(Commit); - - expectCommitProperties(commit); } }); |