xiaoju-survey/server/src/app.controller.spec.ts

19 lines
471 B
TypeScript
Raw Normal View History

2024-03-14 13:50:57 +00:00
import { Test, TestingModule } from '@nestjs/testing';
import { AppController } from './app.controller';
describe('AppController', () => {
let controller: AppController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [AppController],
}).compile();
controller = module.get<AppController>(AppController);
});
it('should be defined', () => {
expect(controller).toBeDefined();
});
});