Skip to content

Commit 39e23b0

Browse files
committed
test(microservices): fix expect that does not execute
1 parent 36d5a81 commit 39e23b0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/microservices/test/exceptions/rpc-exceptions-handler.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('RpcExceptionsHandler', () => {
7777
expect((handler as any).filters).to.be.eql(filters);
7878
});
7979
it('should throws exception when passed argument is not an array', () => {
80-
expect(() => handler.setCustomFilters(null)).to.throw;
80+
expect(() => handler.setCustomFilters(null)).to.throw();
8181
});
8282
});
8383
describe('invokeCustomFilters', () => {

packages/microservices/test/server/server-rmq.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ describe('ServerRMQ', () => {
169169
server.sendMessage(message, replyTo, correlationId);
170170
expect(
171171
channel.sendToQueue.calledWith(
172-
Buffer.from(JSON.stringify(message)),
173172
replyTo,
173+
Buffer.from(JSON.stringify(message)),
174174
{ correlationId },
175175
),
176-
);
176+
).to.be.true;
177177
});
178178
});
179179

0 commit comments

Comments
 (0)