- 后端:基于 NestJS 的分层架构设计 - 前端:基于 VbenAdmin + Element Plus 的管理系统 - 支持 SaaS + 独立版双架构模式 - 完整的用户权限管理系统 - 系统设置、文件上传、通知等核心功能 - 多租户支持和插件化扩展架构
23 lines
617 B
TypeScript
23 lines
617 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
import { AppController } from './app.controller';
|
|
import { AppService } from './app.service';
|
|
|
|
describe('AppController', () => {
|
|
let appController: AppController;
|
|
|
|
beforeEach(async () => {
|
|
const app: TestingModule = await Test.createTestingModule({
|
|
controllers: [AppController],
|
|
providers: [AppService],
|
|
}).compile();
|
|
|
|
appController = app.get<AppController>(AppController);
|
|
});
|
|
|
|
describe('root', () => {
|
|
it('should return "Hello World!"', () => {
|
|
expect(appController.getHello()).toBe('Hello World!');
|
|
});
|
|
});
|
|
});
|