mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-15 15:49:09 +00:00
Merge Input Refactor
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { ConnectionTestController } from './connection-test.controller';
|
||||
import { ConnectionTestService } from './connection-test.service';
|
||||
import { DadosferaLogger } from '@dadosfera/dadosfera-logs';
|
||||
import { ConnectionTestClientConfiguration } from './connection-test-client.config';
|
||||
import { ClientsModule } from '@nestjs/microservices';
|
||||
|
||||
describe('ConnectionTestController', () => {
|
||||
let controller: ConnectionTestController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const client = new ConnectionTestClientConfiguration();
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [ConnectionTestController],
|
||||
providers: [ConnectionTestService, DadosferaLogger],
|
||||
imports: [ClientsModule.register([client.providerOptions])],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<ConnectionTestController>(ConnectionTestController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
||||
@@ -1,25 +0,0 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { ConnectionTestController } from './connection-test.controller';
|
||||
import { ConnectionTestService } from './connection-test.service';
|
||||
import { DadosferaLogger } from '@dadosfera/dadosfera-logs';
|
||||
import { ConnectionTestClientConfiguration } from './connection-test-client.config';
|
||||
import { ClientsModule } from '@nestjs/microservices';
|
||||
|
||||
describe('ConnectionTestService', () => {
|
||||
let service: ConnectionTestService;
|
||||
|
||||
beforeEach(async () => {
|
||||
const client = new ConnectionTestClientConfiguration();
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [ConnectionTestController],
|
||||
providers: [ConnectionTestService, DadosferaLogger],
|
||||
imports: [ClientsModule.register([client.providerOptions])],
|
||||
}).compile();
|
||||
|
||||
service = module.get<ConnectionTestService>(ConnectionTestService);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user