collect-system/apps/server/src/hello/hello.service.spec.ts

19 lines
453 B
TypeScript
Raw Normal View History

2024-07-11 11:00:51 +08:00
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();
});
});