mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-04-20 04:18:05 +00:00
19 lines
472 B
TypeScript
19 lines
472 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
import { ApiController } from './api.controller';
|
|
|
|
describe('Api Controller', () => {
|
|
let controller: ApiController;
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
controllers: [ApiController],
|
|
}).compile();
|
|
|
|
controller = module.get<ApiController>(ApiController);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(controller).toBeDefined();
|
|
});
|
|
});
|