mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
chore: Update test names
This commit is contained in:
parent
f36c6d1312
commit
4a9806d753
@ -105,7 +105,7 @@ describe('Auth', () => {
|
||||
});
|
||||
|
||||
describe('validatePassword', () => {
|
||||
test('Compares password with hash', async () => {
|
||||
test('Compares password with hash (matching passwords)', async () => {
|
||||
const password = 'pcw123';
|
||||
const hash = await hashPassword(password);
|
||||
|
||||
@ -113,7 +113,7 @@ describe('Auth', () => {
|
||||
expect(isValid).toBe(true);
|
||||
});
|
||||
|
||||
test('Compares password with hash', async () => {
|
||||
test('Compares password with hash (not matching passwords)', async () => {
|
||||
const password = 'pcw123';
|
||||
const password2 = 'pcs1234';
|
||||
const hash = await hashPassword(password2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user