From 8ddf19df55572da5c4fb60576def7e534397244d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Chevalier?= Date: Thu, 25 May 2023 15:45:49 +0200 Subject: [PATCH] linting --- src/modules/ad/domain/dtos/create-ad.request.ts | 2 -- src/modules/ad/domain/usecases/create-ad.usecase.ts | 1 - src/modules/ad/tests/integration/ad.repository.spec.ts | 4 ---- 3 files changed, 7 deletions(-) diff --git a/src/modules/ad/domain/dtos/create-ad.request.ts b/src/modules/ad/domain/dtos/create-ad.request.ts index 90c3714..5b7e8cf 100644 --- a/src/modules/ad/domain/dtos/create-ad.request.ts +++ b/src/modules/ad/domain/dtos/create-ad.request.ts @@ -6,9 +6,7 @@ import { IsInt, IsEnum, ValidateNested, - ValidateIf, ArrayMinSize, - IsNotEmptyObject, IsUUID, } from 'class-validator'; import { Frequency } from '../types/frequency.enum'; diff --git a/src/modules/ad/domain/usecases/create-ad.usecase.ts b/src/modules/ad/domain/usecases/create-ad.usecase.ts index f8755a5..b5731da 100644 --- a/src/modules/ad/domain/usecases/create-ad.usecase.ts +++ b/src/modules/ad/domain/usecases/create-ad.usecase.ts @@ -38,7 +38,6 @@ export class CreateAdUseCase { this.setDefaultDistanceMargin(); try { - console.log(this.ad); const adCreated: Ad = await this._repository.create(this.ad); this._messager.publish('ad.create', JSON.stringify(adCreated)); this._messager.publish( diff --git a/src/modules/ad/tests/integration/ad.repository.spec.ts b/src/modules/ad/tests/integration/ad.repository.spec.ts index e597cf9..06cbc5d 100644 --- a/src/modules/ad/tests/integration/ad.repository.spec.ts +++ b/src/modules/ad/tests/integration/ad.repository.spec.ts @@ -2,7 +2,6 @@ import { Test } from '@nestjs/testing'; import { PrismaService } from '../../../database/adapters/secondaries/prisma-service'; import { AdsRepository } from '../../adapters/secondaries/ads.repository'; import { DatabaseModule } from '../../../database/database.module'; - import { Frequency } from '../../domain/types/frequency.enum'; import { AdCreation } from '../../domain/dtos/ad.creation'; import { Address } from '../../domain/entities/address'; @@ -398,9 +397,6 @@ describe('Ad Repository', () => { expect(ad).toBeNull(); }); }); - describe('Create Ad', () => { - it('should Create an ad ', async () => {}); - }); describe('create', () => { it('should create an punctual ad', async () => { const beforeCount = await prismaService.ad.count();