diff --git a/test/unit/node/util.test.ts b/test/unit/node/util.test.ts index bb1884b9c..0b085f095 100644 --- a/test/unit/node/util.test.ts +++ b/test/unit/node/util.test.ts @@ -1,3 +1,5 @@ +import { hash } from "../../../src/node/util" + describe("getEnvPaths", () => { describe("on darwin", () => { let ORIGINAL_PLATFORM = "" @@ -145,3 +147,11 @@ describe("getEnvPaths", () => { }) }) }) + +describe("hash", () => { + it("should return a hash of the string passed in", () => { + const plainTextPassword = "mySecretPassword123" + const hashed = hash(plainTextPassword) + expect(hashed).not.toBe(plainTextPassword) + }) +})