tests: fix tests

This commit is contained in:
exactlyaron 2025-01-23 11:41:26 +00:00
parent b560d74b8e
commit 75991321de
2 changed files with 11 additions and 11 deletions

View file

@ -574,14 +574,14 @@ Top Drawer`, {
assert.strictEqual(chef.fromUNIXTimestamp("978346800").toString(), "Mon 1 January 2001 11:00:00 UTC");
}),
// it("Generate HOTP", () => {
// const result = chef.generateHOTP("JBSWY3DPEHPK3PXP", {
// });
// const expected = `URI: otpauth://hotp/?secret=JBSWY3DPEHPK3PXP&algorithm=SHA1&digits=6&counter=0
it("Generate HOTP", () => {
const result = chef.generateHOTP("JBSWY3DPEHPK3PXP", {
});
const expected = `URI: otpauth://hotp/?secret=JBSWY3DPEHPK3PXP&algorithm=SHA1&digits=6&counter=0
// Password: 282760`;
// assert.strictEqual(result.toString(), expected);
// }),
Password: 282760`;
assert.strictEqual(result.toString(), expected);
}),
it("Generate PGP Key Pair", async () => {
const result = await chef.generatePGPKeyPair("Back To the Drawing Board", {