Created Service, Module and Controller for Formular and Field

This commit is contained in:
2026-02-02 12:18:11 +01:00
parent 76857b8611
commit 3dd2b43cc4
14 changed files with 115 additions and 35 deletions

View 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();
});
});

View File

@@ -0,0 +1,6 @@
import { Controller } from '@nestjs/common';
@Controller('/api/formulare')
export class FormularController {
}

View File

@@ -0,0 +1,4 @@
import { Module } from '@nestjs/common';
@Module({})
export class FormularModule {}

View 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();
});
});

View File

@@ -0,0 +1,4 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class FormularService {}