1
0
Fork 0
passwordhash/sha.test.ts

8 lines
269 B
TypeScript
Raw Normal View History

2020-05-13 12:22:56 +00:00
import { test, expect } from "./deps.test.ts";
2020-05-11 18:15:24 +00:00
import { hex_sha1 } from "./sha.ts";
2020-05-13 12:22:56 +00:00
test("sha1", () => {
expect(hex_sha1("abc")).toEqual("a9993e364706816aba3e25717850c26c9cd0d89d");
expect(hex_sha1("test")).toEqual("a94a8fe5ccb19ba61c4c0873d391e987982fbbd3");
2020-05-11 18:15:24 +00:00
});