mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +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"));
|
|
});
|
|
});
|