Skip to content

Commit

Permalink
build(sinon) fix more TypeScript compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Savin committed Feb 14, 2019
1 parent bd87057 commit f801ad8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/microservices/test/client/client-mqtt.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('ClientMqtt', () => {
(client as any).mqttClient = mqttClient;
connectSpy = sinon.stub(client, 'connect');
assignStub = sinon
.stub(client, 'assignPacketId')
.stub(client, 'assignPacketId' as any)
.callsFake(packet => Object.assign(packet, { id }));
});
afterEach(() => {
Expand Down Expand Up @@ -211,7 +211,7 @@ describe('ClientMqtt', () => {
removeListener: () => ({}),
}));
handleErrorsSpy = sinon.spy(client, 'handleError');
connect$Stub = sinon.stub(client, 'connect$').callsFake(() => ({
connect$Stub = sinon.stub(client, 'connect$' as any).callsFake(() => ({
subscribe: resolve => resolve(),
toPromise() {
return this;
Expand Down

0 comments on commit f801ad8

Please sign in to comment.