2020-01-26 19:07:15 +01:00
|
|
|
import { Test, TestingModule } from '@nestjs/testing';
|
2020-02-01 16:11:48 +01:00
|
|
|
import { UsersController } from './users.controller';
|
2020-01-26 19:07:15 +01:00
|
|
|
|
2020-02-01 16:11:48 +01:00
|
|
|
describe('Users Controller', () => {
|
|
|
|
|
let controller: UsersController;
|
2020-01-26 19:07:15 +01:00
|
|
|
|
|
|
|
|
beforeEach(async () => {
|
|
|
|
|
const module: TestingModule = await Test.createTestingModule({
|
2020-02-01 16:11:48 +01:00
|
|
|
controllers: [UsersController],
|
2020-01-26 19:07:15 +01:00
|
|
|
}).compile();
|
|
|
|
|
|
2020-02-01 16:11:48 +01:00
|
|
|
controller = module.get<UsersController>(UsersController);
|
2020-01-26 19:07:15 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should be defined', () => {
|
|
|
|
|
expect(controller).toBeDefined();
|
|
|
|
|
});
|
|
|
|
|
});
|