Add experience service

This commit is contained in:
Thom Werring 2023-10-21 10:30:36 +02:00
parent dca7f9c5c2
commit 14a3065c86
4 changed files with 32 additions and 2 deletions

View file

@ -2,12 +2,13 @@ import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
import { ApiExtraModels, ApiOkResponse, ApiResponse, ApiTags, getSchemaPath } from "@nestjs/swagger";
import { SkillsService } from "src/skills/skills.service";
import { ExperiencesService } from "src/experiences/experiences.service";
import { SkillDto } from "src/skills/skills.types";
@Controller()
@ApiExtraModels(SkillDto)
export class AppController {
constructor(private readonly appService: AppService, private readonly skillsService: SkillsService) {}
constructor(private readonly appService: AppService, private readonly skillsService: SkillsService, private readonly experiencesService: ExperiencesService) {}
@Get()
sayHello(): string {

View file

@ -2,10 +2,11 @@ import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { SkillsService } from './skills/skills.service';
import { ExperiencesService } from './experiences/experiences.service';
@Module({
imports: [],
controllers: [AppController],
providers: [AppService, SkillsService],
providers: [AppService, SkillsService, ExperiencesService],
})
export class AppModule {}

View file

@ -0,0 +1,18 @@
import { Test, TestingModule } from '@nestjs/testing';
import { ExperiencesService } from './experiences.service';
describe('ExperiencesService', () => {
let service: ExperiencesService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [ExperiencesService],
}).compile();
service = module.get<ExperiencesService>(ExperiencesService);
});
it('should be defined', () => {
expect(service).toBeDefined();
});
});

View file

@ -0,0 +1,10 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class ExperiencesService {
private readonly
constructor() {
}
}