linting
This commit is contained in:
parent
6839e81cd6
commit
8ddf19df55
|
@ -6,9 +6,7 @@ import {
|
|||
IsInt,
|
||||
IsEnum,
|
||||
ValidateNested,
|
||||
ValidateIf,
|
||||
ArrayMinSize,
|
||||
IsNotEmptyObject,
|
||||
IsUUID,
|
||||
} from 'class-validator';
|
||||
import { Frequency } from '../types/frequency.enum';
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue