update bcryptjs (#2368)

Co-authored-by: GCHQDeveloper581 <63102987+GCHQDeveloper581@users.noreply.github.com> (fixed browser tests)
This commit is contained in:
GCHQ Developer 85297
2026-05-09 11:57:41 +01:00
committed by GitHub
co-authored by GCHQDeveloper581
parent 055ae50e8e
commit 9727e2607c
6 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -136,8 +136,8 @@ Tiger-128`;
it("Bcrypt", async () => {
const result = await chef.bcrypt("Put a Sock In It");
const strResult = result.toString();
assert.equal(strResult.length, 60);
assert.equal(strResult.slice(0, 7), "$2a$10$");
assert.match(strResult, /^\$2b\$10\$[./A-Za-z0-9]{53}$/);
assert.equal(strResult.split("$").length, 4);
}),
it("bcryptCompare", async() => {