parent
c8c957480d
commit
fdb9e86d9d
@ -0,0 +1,9 @@ |
||||
root = true |
||||
|
||||
[*.{ts,json}] |
||||
charset = utf-8 |
||||
end_of_line = lf |
||||
insert_final_newline = true |
||||
indent_style = space |
||||
indent_size = 2 |
||||
trim_trailing_whitespace = true |
@ -1 +1,3 @@ |
||||
.config.json |
||||
deno.d.ts |
||||
.vscode |
||||
.local |
||||
|
@ -0,0 +1,3 @@ |
||||
# typescript/passwordhash |
||||
|
||||
[](https://dev.azure.com/thunderk/typescript/_build?pipelineNameFilter=passwordhash) |
@ -0,0 +1 @@ |
||||
export * from "https://code.thunderk.net/typescript/deno_tools/raw/1.0.0/testing.ts"; |
@ -1,7 +1,7 @@ |
||||
import { assertEquals } from "https://deno.land/std/testing/asserts.ts"; |
||||
import { test, expect } from "./deps.test.ts"; |
||||
import { hex_sha1 } from "./sha.ts"; |
||||
|
||||
Deno.test("sha1", () => { |
||||
assertEquals(hex_sha1("abc"), "a9993e364706816aba3e25717850c26c9cd0d89d"); |
||||
assertEquals(hex_sha1("test"), "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3"); |
||||
test("sha1", () => { |
||||
expect(hex_sha1("abc")).toEqual("a9993e364706816aba3e25717850c26c9cd0d89d"); |
||||
expect(hex_sha1("test")).toEqual("a94a8fe5ccb19ba61c4c0873d391e987982fbbd3"); |
||||
}); |
||||
|
Loading…
Reference in new issue