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