diff options
author | HampusM <hampus@hampusmat.com> | 2021-08-15 13:41:37 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-08-15 13:41:37 +0200 |
commit | c32094d0b1fc3aa5160087d71bff36ed1779bc3a (patch) | |
tree | 880b04bc207926a378fc7d5b30ee0fd421972fec /test/unit | |
parent | ddcf71225226bc0929d5c6d609b13ff0489e5b94 (diff) |
Rewrote the commit author fingerprint function & implemented commit signature verification
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/commit.unit.test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
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 |