From 108b469cbb09f911c9a52d4134a504d9b51ac30d Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 11 Aug 2021 12:59:23 +0200 Subject: Implemented gpg signed commit support --- test/util.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/util.ts') diff --git a/test/util.ts b/test/util.ts index 5886514..0079580 100644 --- a/test/util.ts +++ b/test/util.ts @@ -1,4 +1,4 @@ -import { Commit } from "server/src/git/commit"; +import { Commit, CommitAuthor } from "server/src/git/commit"; export type EnvironmentVariables = { BASE_DIR: string, @@ -14,8 +14,11 @@ export type EnvironmentVariables = { export function expectCommitProperties(commit: Commit): void { expect(commit).toHaveProperty("id"); expect(commit).toHaveProperty("author"); - expect(commit).toHaveProperty("author.name"); - expect(commit).toHaveProperty("author.email"); + + 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