Files
bknd/app/__test__/core/crypto.spec.ts
2024-11-16 12:01:47 +01:00

15 lines
387 B
TypeScript

import { describe, test } from "bun:test";
import { checksum, hash } from "../../src/core/utils";
describe("crypto", async () => {
test("sha256", async () => {
console.log(await hash.sha256("test"));
});
test("sha1", async () => {
console.log(await hash.sha1("test"));
});
test("checksum", async () => {
console.log(checksum("hello world"));
});
});