services
This commit is contained in:
@@ -2,9 +2,11 @@ import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { CarreraProgramaController } from './carrera-programa.controller';
|
||||
import { CarreraPrograma } from './carrera-programa.entity';
|
||||
import { CarreraProgramaService } from './carrera-programa.service';
|
||||
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([CarreraPrograma])],
|
||||
controllers: [CarreraProgramaController],
|
||||
providers: [CarreraProgramaService],
|
||||
})
|
||||
export class CarreraProgramaModule {}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { CarreraProgramaService } from './carrera-programa.service';
|
||||
|
||||
describe('CarreraProgramaService', () => {
|
||||
let service: CarreraProgramaService;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [CarreraProgramaService],
|
||||
}).compile();
|
||||
|
||||
service = module.get<CarreraProgramaService>(CarreraProgramaService);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class CarreraProgramaService {}
|
||||
Reference in New Issue
Block a user