Change to SHA256 hashing
This commit is contained in:
parent
5624e51f52
commit
02f70d5f9f
1 changed files with 18 additions and 10 deletions
7
frontend/sync-client/src/utils/hash.test.ts
Normal file
7
frontend/sync-client/src/utils/hash.test.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import assert from "node:assert";
|
||||
import { test } from "node:test";
|
||||
import { EMPTY_HASH, hash } from "./hash";
|
||||
|
||||
void test("EMPTY_HASH is the SHA-256 hash of empty content", async () => {
|
||||
assert.strictEqual(await hash(new Uint8Array()), EMPTY_HASH);
|
||||
});
|
||||
Loading…
Reference in a new issue