Skip to content

Commit c29144c

Browse files
tests(): hotfix (client proxy) createObserver issue
1 parent 13f4432 commit c29144c

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

packages/microservices/test/client/client-proxy.spec.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,9 @@ describe('ClientProxy', () => {
119119
});
120120

121121
describe('createObserver', () => {
122-
it(`should return function`, () => {
123-
const testClientProxy = new TestClientProxy();
124-
expect(typeof testClientProxy['createObserver']({} as any)).to.be.eql(
125-
'function',
126-
);
127-
});
128-
129122
describe('returned function calls', () => {
130-
let testClient: TestClientProxy;
131-
beforeEach(() => {
132-
testClient = new TestClientProxy();
133-
});
134-
135123
it(`"error" when first parameter is not null or undefined`, () => {
124+
const testClient = new TestClientProxy();
136125
const err = 'test';
137126
const error = sinon.spy();
138127
const next = sinon.spy();
@@ -149,6 +138,7 @@ describe('ClientProxy', () => {
149138
});
150139

151140
it(`"next" when first parameter is null or undefined`, () => {
141+
const testClient = new TestClientProxy();
152142
const data = 'test';
153143
const error = sinon.spy();
154144
const next = sinon.spy();
@@ -165,6 +155,7 @@ describe('ClientProxy', () => {
165155
});
166156

167157
it(`"complete" when third parameter is true`, () => {
158+
const testClient = new TestClientProxy();
168159
const data = 'test';
169160
const error = sinon.spy();
170161
const next = sinon.spy();

0 commit comments

Comments
 (0)