19 lines
453 B
TypeScript
19 lines
453 B
TypeScript
![]() |
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();
|
||
|
});
|
||
|
});
|