From c32094d0b1fc3aa5160087d71bff36ed1779bc3a Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 15 Aug 2021 13:41:37 +0200 Subject: Rewrote the commit author fingerprint function & implemented commit signature verification --- test/unit/commit.unit.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/unit/commit.unit.test.ts b/test/unit/commit.unit.test.ts index 21c04db..d302ea8 100644 --- a/test/unit/commit.unit.test.ts +++ b/test/unit/commit.unit.test.ts @@ -120,5 +120,14 @@ describe("Commit", () => { expect(fingerprint).toBeDefined(); }); + + it("Should verify the commit pgp signature and respond true", async() => { + expect.assertions(2); + + const verified = await commit.verifySignature(); + + expect(verified).toBeDefined(); + expect(verified).toBeTruthy(); + }); }); }); \ No newline at end of file -- cgit v1.2.3-18-g5258