mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 10:58:07 +03:00
13 lines
284 B
TypeScript
13 lines
284 B
TypeScript
import t from "tap";
|
|
import { HashSHA256 } from "./crypto";
|
|
|
|
t.test("#HashSHA256", (t) => {
|
|
t.equal(
|
|
HashSHA256(Buffer.from("something")),
|
|
"3fc9b689459d738f8c88a3a48aa9e33542016b7a4052e001aaa536fca74813cb",
|
|
"'something' should hash into its expected value."
|
|
);
|
|
|
|
t.end();
|
|
});
|