This commit is contained in:
xXpuma99Xx
2022-04-04 20:02:54 -05:00
parent 4681fb1f58
commit 3c8dd17089
62 changed files with 541 additions and 4 deletions
+2
View File
@@ -2,9 +2,11 @@ import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MultaController } from './multa.controller';
import { Multa } from './multa.entity';
import { MultaService } from './multa.service';
@Module({
imports: [TypeOrmModule.forFeature([Multa])],
controllers: [MultaController],
providers: [MultaService],
})
export class MultaModule {}
+18
View File
@@ -0,0 +1,18 @@
import { Test, TestingModule } from '@nestjs/testing';
import { MultaService } from './multa.service';
describe('MultaService', () => {
let service: MultaService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [MultaService],
}).compile();
service = module.get<MultaService>(MultaService);
});
it('should be defined', () => {
expect(service).toBeDefined();
});
});
+4
View File
@@ -0,0 +1,4 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class MultaService {}