Add initial VibeGuard browser extension
This commit is contained in:
parent
f251f0f8ce
commit
9c65a61ebb
43 changed files with 125275 additions and 2 deletions
9
tests/hash.test.ts
Normal file
9
tests/hash.test.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
import { hashText, normalizeText } from "../src/shared/hash";
|
||||
|
||||
describe("text hashing", () => {
|
||||
it("normalizes whitespace and casing", () => {
|
||||
expect(normalizeText(" Hello\n WORLD ")).toBe("hello world");
|
||||
expect(hashText("hello world")).toBe(hashText("HELLO\nWORLD"));
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue