Skip to content

Commit

Permalink
test(microservices): Tests are also deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
youngkiu committed Mar 5, 2024
1 parent 4eff063 commit 7cd003c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/microservices/test/server/server-grpc.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ describe('ServerGrpc', () => {
await server.close();
expect(bindEventsStub.called).to.be.true;
});
it('should call "client.start"', async () => {
const client = { start: sinon.spy() };
sinon.stub(server, 'createClient').callsFake(async () => client);

await server.listen(callback);
expect(client.start.called).to.be.true;
});
it('should call callback', async () => {
await server.listen(callback);
await server.close();
Expand Down Expand Up @@ -95,12 +88,6 @@ describe('ServerGrpc', () => {
await serverMulti.close();
expect(bindEventsStub.called).to.be.true;
});
it('should call "client.start"', async () => {
const client = { start: sinon.spy() };
sinon.stub(serverMulti, 'createClient').callsFake(async () => client);
await serverMulti.listen(callback);
expect(client.start.called).to.be.true;
});
it('should call callback', async () => {
await serverMulti.listen(callback);
await serverMulti.close();
Expand Down

0 comments on commit 7cd003c

Please sign in to comment.