chore: Update test names

This commit is contained in:
Gustav Hansen 2022-05-23 09:41:36 +02:00
parent f36c6d1312
commit 4a9806d753

View File

@ -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);