This commit is contained in:
Grégoire Chevalier 2023-05-25 15:45:49 +02:00
parent 6839e81cd6
commit 8ddf19df55
3 changed files with 0 additions and 7 deletions

View File

@ -6,9 +6,7 @@ import {
IsInt, IsInt,
IsEnum, IsEnum,
ValidateNested, ValidateNested,
ValidateIf,
ArrayMinSize, ArrayMinSize,
IsNotEmptyObject,
IsUUID, IsUUID,
} from 'class-validator'; } from 'class-validator';
import { Frequency } from '../types/frequency.enum'; import { Frequency } from '../types/frequency.enum';

View File

@ -38,7 +38,6 @@ export class CreateAdUseCase {
this.setDefaultDistanceMargin(); this.setDefaultDistanceMargin();
try { try {
console.log(this.ad);
const adCreated: Ad = await this._repository.create(this.ad); const adCreated: Ad = await this._repository.create(this.ad);
this._messager.publish('ad.create', JSON.stringify(adCreated)); this._messager.publish('ad.create', JSON.stringify(adCreated));
this._messager.publish( this._messager.publish(

View File

@ -2,7 +2,6 @@ import { Test } from '@nestjs/testing';
import { PrismaService } from '../../../database/adapters/secondaries/prisma-service'; import { PrismaService } from '../../../database/adapters/secondaries/prisma-service';
import { AdsRepository } from '../../adapters/secondaries/ads.repository'; import { AdsRepository } from '../../adapters/secondaries/ads.repository';
import { DatabaseModule } from '../../../database/database.module'; import { DatabaseModule } from '../../../database/database.module';
import { Frequency } from '../../domain/types/frequency.enum'; import { Frequency } from '../../domain/types/frequency.enum';
import { AdCreation } from '../../domain/dtos/ad.creation'; import { AdCreation } from '../../domain/dtos/ad.creation';
import { Address } from '../../domain/entities/address'; import { Address } from '../../domain/entities/address';
@ -398,9 +397,6 @@ describe('Ad Repository', () => {
expect(ad).toBeNull(); expect(ad).toBeNull();
}); });
}); });
describe('Create Ad', () => {
it('should Create an ad ', async () => {});
});
describe('create', () => { describe('create', () => {
it('should create an punctual ad', async () => { it('should create an punctual ad', async () => {
const beforeCount = await prismaService.ad.count(); const beforeCount = await prismaService.ad.count();