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 2e75680 commit 82bb7ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/microservices/test/client/client-rmq.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('ClientRQM', () => {
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
2 changes: 1 addition & 1 deletion packages/microservices/test/client/client-tcp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe('ClientTCP', () => {
toPromise: () => source,
pipe: () => source,
};
connect$Stub = sinon.stub(client, 'connect$').callsFake(() => source);
connect$Stub = sinon.stub(client, 'connect$' as any).callsFake(() => source);
await client.connect();
});
afterEach(() => {
Expand Down

0 comments on commit 82bb7ef

Please sign in to comment.