Skip to content

Commit

Permalink
Add miscellaneous.test.ts comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Nov 19, 2024
1 parent 3cd7611 commit 2a80a2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/tests/miscellaneous.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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(),
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 2a80a2c

Please sign in to comment.