services
This commit is contained in:
@@ -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 {}
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class MultaService {}
|
||||
Reference in New Issue
Block a user