gene res 생성 및 next 업데이트
This commit is contained in:
@@ -18,6 +18,7 @@ import { CowModule } from './cow/cow.module';
|
||||
import { GenomeModule } from './genome/genome.module';
|
||||
import { MptModule } from './mpt/mpt.module';
|
||||
import { DashboardModule } from './dashboard/dashboard.module';
|
||||
import { GeneModule } from './gene/gene.module';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -54,6 +55,7 @@ import { DashboardModule } from './dashboard/dashboard.module';
|
||||
FarmModule,
|
||||
CowModule,
|
||||
GenomeModule,
|
||||
GeneModule,
|
||||
MptModule,
|
||||
DashboardModule,
|
||||
|
||||
|
||||
20
backend/src/gene/gene.controller.spec.ts
Normal file
20
backend/src/gene/gene.controller.spec.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { GeneController } from './gene.controller';
|
||||
import { GeneService } from './gene.service';
|
||||
|
||||
describe('GeneController', () => {
|
||||
let controller: GeneController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [GeneController],
|
||||
providers: [GeneService],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<GeneController>(GeneController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
||||
7
backend/src/gene/gene.controller.ts
Normal file
7
backend/src/gene/gene.controller.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Controller } from '@nestjs/common';
|
||||
import { GeneService } from './gene.service';
|
||||
|
||||
@Controller('gene')
|
||||
export class GeneController {
|
||||
constructor(private readonly geneService: GeneService) {}
|
||||
}
|
||||
9
backend/src/gene/gene.module.ts
Normal file
9
backend/src/gene/gene.module.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { GeneService } from './gene.service';
|
||||
import { GeneController } from './gene.controller';
|
||||
|
||||
@Module({
|
||||
controllers: [GeneController],
|
||||
providers: [GeneService],
|
||||
})
|
||||
export class GeneModule {}
|
||||
18
backend/src/gene/gene.service.spec.ts
Normal file
18
backend/src/gene/gene.service.spec.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { GeneService } from './gene.service';
|
||||
|
||||
describe('GeneService', () => {
|
||||
let service: GeneService;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [GeneService],
|
||||
}).compile();
|
||||
|
||||
service = module.get<GeneService>(GeneService);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
4
backend/src/gene/gene.service.ts
Normal file
4
backend/src/gene/gene.service.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class GeneService {}
|
||||
Reference in New Issue
Block a user