Fixes failing user tetst
This commit is contained in:
1 parent
35e0930650
commit
bc5dc5fab4
7 files changed
+18
-18
No files matched your search
@@ -79,7 +79,7 @@ describe("UserService", () => {
|
||||
$set: {
|
||||
// Since bcrypt hashing always varies, we are testing the password
|
||||
// match by using a regular expression.
|
||||
password: expect.stringMatching(
|
||||
password_hash: expect.stringMatching(
|
||||
/^\$2[aby]?\$[\d]+\$[./A-Za-z0-9]{53}$/
|
||||
),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user