Created Service, Module and Controller for Formular and Field
This commit is contained in:
18
src/formular/formular.controller.spec.ts
Normal file
18
src/formular/formular.controller.spec.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { FormularController } from './formular.controller';
|
||||
|
||||
describe('FormularController', () => {
|
||||
let controller: FormularController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [FormularController],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<FormularController>(FormularController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
||||
6
src/formular/formular.controller.ts
Normal file
6
src/formular/formular.controller.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { Controller } from '@nestjs/common';
|
||||
|
||||
@Controller('/api/formulare')
|
||||
export class FormularController {
|
||||
|
||||
}
|
||||
4
src/formular/formular.module.ts
Normal file
4
src/formular/formular.module.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
|
||||
@Module({})
|
||||
export class FormularModule {}
|
||||
18
src/formular/formular.service.spec.ts
Normal file
18
src/formular/formular.service.spec.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { FormularService } from './formular.service';
|
||||
|
||||
describe('FormularService', () => {
|
||||
let service: FormularService;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [FormularService],
|
||||
}).compile();
|
||||
|
||||
service = module.get<FormularService>(FormularService);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
4
src/formular/formular.service.ts
Normal file
4
src/formular/formular.service.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class FormularService {}
|
||||
Reference in New Issue
Block a user