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/util.ts | |
parent | c32094d0b1fc3aa5160087d71bff36ed1779bc3a (diff) |
Added a count query parameter to the log API endpoint
Diffstat (limited to 'test/util.ts')
-rw-r--r-- | test/util.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/util.ts b/test/util.ts index 30a5c60..9e62ec9 100644 --- a/test/util.ts +++ b/test/util.ts @@ -1,5 +1,3 @@ -import { Commit, CommitAuthor } from "server/src/git/commit"; - export type EnvironmentVariables = { GIT_DIR: string, AVAIL_REPO: string, @@ -9,16 +7,4 @@ export type EnvironmentVariables = { UNAVAIL_OBJECT: string, AVAIL_COMMIT: string, UNAVAIL_COMMIT: string -} - -export function expectCommitProperties(commit: Commit): void { - expect(commit).toHaveProperty("id"); - expect(commit).toHaveProperty("author"); - - const author = commit.author(); - expect(author).toBeInstanceOf(CommitAuthor); - - expect(commit).toHaveProperty("date"); - expect(commit).toHaveProperty("message"); - expect(commit).toHaveProperty("isSigned"); }
\ No newline at end of file |