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