blob: ce09ccfb860585891400d09e6d5f6a6bd60bb35b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { toHash } from "./toHash.ts";
test("should return a buffer of at 32 bytes for input string", async () => {
const hash = await toHash("string");
expect(hash.byteLength).toEqual(32);
});
test("should return a buffer of at 32 bytes for input Buffer", async () => {
const hash = await toHash(Buffer.alloc(10));
expect(hash.byteLength).toEqual(32);
});
|