Added tests

This commit is contained in:
Matt 2019-06-27 17:30:44 +01:00
parent 4c27a46d35
commit c46928aefe
No known key found for this signature in database
GPG key ID: 2DD462FE98BF38C2
3 changed files with 30 additions and 3 deletions

View file

@ -101,8 +101,8 @@ class PGPDecryptAndVerify extends Operation {
text += "\n";
}
text += [
`PGP fingerprint: ${km.get_pgp_fingerprint().toString("hex")}`,
`PGP key ID: ${km.get_pgp_short_key_id()}`,
`PGP fingerprint: ${km.get_pgp_fingerprint().toString("hex")}`,
`Signed on ${new Date(ds.sig.when_generated() * 1000).toUTCString()}`,
"----------------------------------\n"
].join("\n");

View file

@ -88,8 +88,8 @@ class PGPVerify extends Operation {
text += "\n";
}
text += [
`PGP fingerprint: ${km.get_pgp_fingerprint().toString("hex")}`,
`PGP key ID: ${km.get_pgp_short_key_id()}`,
`PGP fingerprint: ${km.get_pgp_fingerprint().toString("hex")}`,
`Signed on ${new Date(ds.sig.when_generated() * 1000).toUTCString()}`,
"----------------------------------\n"
].join("\n");