fixed foreign key
This commit is contained in:
@@ -14,7 +14,7 @@ export class Sancion {
|
||||
|
||||
@OneToMany(
|
||||
() => AlumnoSancion,
|
||||
(id_sanncion) => id_sanncion.id_alumno_sancion,
|
||||
(alusancion) => alusancion.id_sancion,
|
||||
)
|
||||
id_sanciones: AlumnoSancion[];
|
||||
alumnosSancionados: AlumnoSancion[];
|
||||
}
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { SancionController } from './sancion.controller';
|
||||
import { SancionService } from './sancion.service';
|
||||
|
||||
describe('SancionController', () => {
|
||||
let controller: SancionController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [SancionController],
|
||||
providers: [SancionService],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<SancionController>(SancionController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
||||
@@ -1,18 +0,0 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { SancionService } from './sancion.service';
|
||||
|
||||
describe('SancionService', () => {
|
||||
let service: SancionService;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [SancionService],
|
||||
}).compile();
|
||||
|
||||
service = module.get<SancionService>(SancionService);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user