This commit is contained in:
2025-12-15 13:34:15 +01:00
parent 217337862c
commit 129c63c362
26 changed files with 1353 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { Test, TestingModule } from '@nestjs/testing';
import { HelloService } from './hello.service';
describe('HelloService', () => {
let service: HelloService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [HelloService],
}).compile();
service = module.get<HelloService>(HelloService);
});
it('should be defined', () => {
expect(service).toBeDefined();
});
it('should return "Hello World!"', () => {
expect(service.getHello()).toBe('Hello World!');
});
});

View File

@@ -0,0 +1,9 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class HelloService {
getHello(): string {
return 'Hello World!';
}
}