import { createHash } from "node:crypto"; import { describe, expect, it } from "vitest"; import wordList from "./eff-short-wordlist.txt?raw"; describe("EFF short wordlist", () => { it("retains the pinned 1,296-word resource", () => { expect(wordList.trim().split("\n")).toHaveLength(1296); expect(createHash("sha256").update(wordList).digest("hex")).toBe( "36ecca49e4fa20ca84b176c32f2e9c82f98f446585190e75f9879a95c08247bf", ); }); });