From 2a80a2c73242279fd049a6c1c51e611d64ea08a7 Mon Sep 17 00:00:00 2001 From: aelassas Date: Tue, 19 Nov 2024 15:20:25 +0100 Subject: [PATCH] Add miscellaneous.test.ts comments --- api/tests/miscellaneous.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/tests/miscellaneous.test.ts b/api/tests/miscellaneous.test.ts index 51baf3e3e..b3da1b2c3 100644 --- a/api/tests/miscellaneous.test.ts +++ b/api/tests/miscellaneous.test.ts @@ -36,6 +36,7 @@ const ADDITIONAL_DRIVER: bookcarsTypes.AdditionalDriver = { describe('Test AdditionalDriver phone validation', () => { it('should test AdditionalDriver phone validation', async () => { + // test failure (phone not valid) let res = true try { const additionalDriver = new AdditionalDriver(ADDITIONAL_DRIVER) @@ -49,6 +50,7 @@ describe('Test AdditionalDriver phone validation', () => { describe('Test User phone validation', () => { it('should test User phone validation', async () => { + // test failure (phone not valid) let res = true const USER: bookcarsTypes.User = { email: testHelper.GetRandomEmail(), @@ -77,6 +79,7 @@ describe('Test User phone validation', () => { describe('Test email sending error', () => { it('should test email sending error', async () => { + // test failure (wrong email) let res = true try { await mailHelper.sendMail({