test(microservices): fix nats tests (connect)

This commit is contained in:
Kamil Myśliwiec
2021-06-17 11:05:39 +02:00
parent 67aa026321
commit 1e3bb8a329

View File

@@ -220,6 +220,7 @@ describe('ClientNats', () => {
describe('when is connected', () => {
beforeEach(() => {
client['natsClient'] = { test: true } as any;
client['connection'] = Promise.resolve(true);
});
it('should not call "createClient"', () => {
expect(createClientSpy.called).to.be.false;