mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-18 16:29:08 +00:00
26 lines
969 B
TypeScript
26 lines
969 B
TypeScript
import { ClientsModule } from '@nestjs/microservices';
|
|
import { Test, TestingModule } from '@nestjs/testing';
|
|
import { NetworkConfigClientConfiguration } from './network-config-client.config';
|
|
import { NetworkConfigController } from './network-config.controller';
|
|
import { NetworkConfigService } from './network-config.service';
|
|
import { DadosferaLogger } from '@dadosfera/dadosfera-logs';
|
|
|
|
describe('NetworkConfigService', () => {
|
|
let service: NetworkConfigService;
|
|
|
|
beforeEach(async () => {
|
|
const client = new NetworkConfigClientConfiguration();
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
controllers: [NetworkConfigController],
|
|
providers: [NetworkConfigService, DadosferaLogger],
|
|
imports: [ClientsModule.register([client.providerOptions])],
|
|
}).compile();
|
|
|
|
service = module.get<NetworkConfigService>(NetworkConfigService);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(service).toBeDefined();
|
|
});
|
|
});
|