Skip to content

Commit dc6ab81

Browse files
committed
test: sha256 해싱에 대한 deterministic 테스트
1 parent f3bffb1 commit dc6ab81

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { describe, test, expect } from "vitest";
2+
import { createSHA256Hash } from "../createHash";
3+
4+
describe("createHash", () => {
5+
describe("createSHA256Hash", () => {
6+
test("sha256 must be deterministic", () => {
7+
const hash = createSHA256Hash("test");
8+
expect(hash).toBe(createSHA256Hash("test"));
9+
});
10+
});
11+
});

0 commit comments

Comments
 (0)