1
0
Fork 0
passwordhash/sha.test.ts

8 lines
265 B
TypeScript
Raw Normal View History

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