module cleanup
This commit is contained in:
30
apps/api/src/domain/dashboard/DashboardModule.test.ts
Normal file
30
apps/api/src/domain/dashboard/DashboardModule.test.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { DashboardModule } from './DashboardModule';
|
||||
import { DashboardController } from './DashboardController';
|
||||
import { DashboardService } from './DashboardService';
|
||||
|
||||
describe('DashboardModule', () => {
|
||||
let module: TestingModule;
|
||||
|
||||
beforeEach(async () => {
|
||||
module = await Test.createTestingModule({
|
||||
imports: [DashboardModule],
|
||||
}).compile();
|
||||
});
|
||||
|
||||
it('should compile the module', () => {
|
||||
expect(module).toBeDefined();
|
||||
});
|
||||
|
||||
it('should provide DashboardController', () => {
|
||||
const controller = module.get<DashboardController>(DashboardController);
|
||||
expect(controller).toBeDefined();
|
||||
expect(controller).toBeInstanceOf(DashboardController);
|
||||
});
|
||||
|
||||
it('should provide DashboardService', () => {
|
||||
const service = module.get<DashboardService>(DashboardService);
|
||||
expect(service).toBeDefined();
|
||||
expect(service).toBeInstanceOf(DashboardService);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user