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