From 9736749a779661a95211a91200617a03a1b9a702 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 15 Aug 2021 15:03:44 +0200 Subject: Added a count query parameter to the log API endpoint --- test/util.ts | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'test/util.ts') 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 -- cgit v1.2.3-18-g5258