form-service .ts code compeleted, not check and debugged

This commit is contained in:
OkaykOrhmn 2025-07-16 10:40:12 +03:30
parent e568242fdc
commit 50ead64e69
2 changed files with 20 additions and 3 deletions

View File

@ -16,7 +16,7 @@ describe('AppController', () => {
describe('root', () => { describe('root', () => {
it('should return "Hello World!"', () => { it('should return "Hello World!"', () => {
expect(appController.getHello()).toBe('Hello World!'); expect(appController.getHello()).toBe('This is the main app!');
}); });
}); });
}); });

View File

@ -5,7 +5,15 @@ import { AppController } from './app.controller';
import { AppService } from './app.service'; import { AppService } from './app.service';
import { ParticipantModule } from './participant/participant.module'; import { ParticipantModule } from './participant/participant.module';
import { QuestionModule } from './question/question.module'; import { QuestionModule } from './question/question.module';
// import { TestModule } from './test/test.module'; import { AnswerModule } from './answer/answer.module';
import { AttachmentModule } from './attachment/attachment.module';
import { FormModule } from './form/form.module';
import { FormPageModule } from './formPage/formPage.module';
import { FormResultModule } from './formResult/formResult.module';
import { FormSectionModule } from './formSection/formSection.module';
import { OptionModule } from './option/option.module';
import { ParticipanGrouptModule } from './participantGroup/participantGroup.module';
import { RealmModule } from './realm/realm.module';
@Module({ @Module({
imports: [ imports: [
@ -14,7 +22,16 @@ import { QuestionModule } from './question/question.module';
}), }),
MongooseModule.forRoot(process.env.MONGODB_URI || 'mongodb://localhost:27017/db'), MongooseModule.forRoot(process.env.MONGODB_URI || 'mongodb://localhost:27017/db'),
ParticipantModule, ParticipantModule,
QuestionModule QuestionModule,
AnswerModule,
AttachmentModule,
FormModule,
FormPageModule,
FormResultModule,
FormSectionModule,
OptionModule,
ParticipanGrouptModule,
RealmModule
], ],
controllers: [AppController], controllers: [AppController],
providers: [AppService], providers: [AppService],