Skip to content

Commit 0042508

Browse files
test(microservices) add stub fake call to dispatchEvent
1 parent 35c79bd commit 0042508

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ describe('ClientProxy', function() {
160160
it(`should call "dispatchEvent"`, () => {
161161
const pattern = { test: 3 };
162162
const data = 'test';
163-
const dispatchEventSpy = sinon.spy();
163+
const dispatchEventSpy = sinon
164+
.stub()
165+
.callsFake(() => Promise.resolve(true));
164166
const stream$ = client.emit(pattern, data);
165167
client['dispatchEvent'] = dispatchEventSpy;
166168

0 commit comments

Comments
 (0)