We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5c0a49 commit 7621083Copy full SHA for 7621083
test/unit/node/util.test.ts
@@ -1,3 +1,5 @@
1
+import { hash } from "../../../src/node/util"
2
+
3
describe("getEnvPaths", () => {
4
describe("on darwin", () => {
5
let ORIGINAL_PLATFORM = ""
@@ -145,3 +147,11 @@ describe("getEnvPaths", () => {
145
147
})
146
148
149
150
151
+describe("hash", () => {
152
+ it("should return a hash of the string passed in", () => {
153
+ const plainTextPassword = "mySecretPassword123"
154
+ const hashed = hash(plainTextPassword)
155
+ expect(hashed).not.toBe(plainTextPassword)
156
+ })
157
+})
0 commit comments