mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
test: update pwd test for bcrypt3.x
This commit is contained in:
@@ -9,7 +9,7 @@ describe('Password', () => {
|
||||
describe('.hash()', () => {
|
||||
it('should return a password hash when called', async () => {
|
||||
const hash = await password.hash(12, 'test');
|
||||
assert(hash.startsWith('$2a$'));
|
||||
assert(hash.startsWith('$2b$'));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user