From 410ff3cbc41c224b7c22c15d8494a00e1fcba681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Chevalier?= Date: Wed, 14 Jun 2023 10:44:57 +0200 Subject: [PATCH] fixing docs --- README.md | 4 ++-- .../decorators/is-punctual-or-recurrent.validator.ts | 2 +- .../ad/tests/unit/domain/is-punctual-or-reccurent.spec.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 66a08d4..a8777f2 100644 --- a/README.md +++ b/README.md @@ -169,10 +169,10 @@ The app exposes the following [gRPC](https://grpc.io/) services : - driver (boolean, optional): if the ad is a driver ad - passenger (boolean, optional): if the ad is a passenger ad - frequency: `PUNCTUAL` or `RECURRENT` - - departureDateTime (required if punctual): departureDateTime date and hour/minute for a punctual ad + - departureDateTime (required if punctual): departure date and hour/minute for a punctual ad - fromDate (required if recurrent): start date for recurrent ad - toDate (required if recurrent): end date for recurrent ad - - schedule (required if recurrent): an object with the departureDateTime time for each carpooled day in the week + - schedule (required if recurrent): an object with the departure time for each carpooled day in the week - marginDurations (optional): an object with the margin duration (in seconds) for each carpooled day in the week, eg: { diff --git a/src/modules/ad/domain/dtos/validators/decorators/is-punctual-or-recurrent.validator.ts b/src/modules/ad/domain/dtos/validators/decorators/is-punctual-or-recurrent.validator.ts index de249ee..f8ddf98 100644 --- a/src/modules/ad/domain/dtos/validators/decorators/is-punctual-or-recurrent.validator.ts +++ b/src/modules/ad/domain/dtos/validators/decorators/is-punctual-or-recurrent.validator.ts @@ -18,7 +18,7 @@ export const IsPunctualOrRecurrent = ( isPunctualOrRecurrent(args), defaultMessage: buildMessage( () => - `the departureDateTime, from date, to date and schedule must be properly set on recurrent or punctual ad`, + `the departure Date and time , from date, to date and schedule must be properly set on recurrent or punctual ad`, validationOptions, ), }, diff --git a/src/modules/ad/tests/unit/domain/is-punctual-or-reccurent.spec.ts b/src/modules/ad/tests/unit/domain/is-punctual-or-reccurent.spec.ts index c2f8373..89438cc 100644 --- a/src/modules/ad/tests/unit/domain/is-punctual-or-reccurent.spec.ts +++ b/src/modules/ad/tests/unit/domain/is-punctual-or-reccurent.spec.ts @@ -4,7 +4,7 @@ import { Frequency } from '../../../domain/types/frequency.enum'; describe('punctual or recurrent validators', () => { describe('punctual case ', () => { describe('valid cases', () => { - it('should validate with valid departureDateTime and empty schedule ', () => { + it('should validate with valid departure DateTime and empty schedule ', () => { expect( isPunctualOrRecurrent({ value: undefined,