mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 16:16:02 +00:00
15 lines
387 B
TypeScript
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"));
|
|
});
|
|
});
|