Archived
1
0

feat: add test for hash when error (#4814)

This commit is contained in:
Joe Previte
2022-02-03 14:22:16 -07:00
committed by GitHub
parent fd643dcbc3
commit 00224fa73a
2 changed files with 5 additions and 6 deletions

View File

@ -104,6 +104,10 @@ describe("hash", () => {
const hashed = await util.hash(plainTextPassword)
expect(hashed).not.toBe(plainTextPassword)
})
it("should return a hash for an empty string", async () => {
const hashed = await util.hash("")
expect(hashed).not.toBe("")
})
})
describe("isHashMatch", () => {