passwordhash/sha.test.ts

7 lines
265 B
TypeScript

import { expect, it } from "./deps.test.ts";
import { hex_sha1 } from "./sha.ts";
it("sha1", () => {
expect(hex_sha1("abc")).toEqual("a9993e364706816aba3e25717850c26c9cd0d89d");
expect(hex_sha1("test")).toEqual("a94a8fe5ccb19ba61c4c0873d391e987982fbbd3");
});