Skip to content

Commit d21c860

Browse files
author
Alex Dukhnovskiy
committed
fix(microcervices): fix lint
1 parent 61459cb commit d21c860

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

integration/microservices/src/grpc/grpc.controller.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ export class GrpcController {
2525
transport: Transport.GRPC,
2626
options: {
2727
package: ['math', 'math2'],
28-
protoPath: [join(__dirname, 'math.proto'), join(__dirname, 'math2.proto')],
28+
protoPath: [
29+
join(__dirname, 'math.proto'),
30+
join(__dirname, 'math2.proto'),
31+
],
2932
},
3033
})
3134
client2: ClientGrpc;

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ describe('ServerGrpc', () => {
2828
protoPath: ['test.proto', 'test2.proto'],
2929
package: ['test', 'test2'],
3030
loader: {
31-
includeDirs: [join(__dirname, '.')]
32-
}
31+
includeDirs: [join(__dirname, '.')],
32+
},
3333
});
3434
});
3535

@@ -155,12 +155,15 @@ describe('ServerGrpc', () => {
155155
sinon.stub(serverMulti, 'lookupPackage').callsFake(() => ({
156156
test: { service: true },
157157
}));
158-
sinon.stub(serverMulti, 'getServiceNames').callsFake(() => serviceNames);
158+
sinon
159+
.stub(serverMulti, 'getServiceNames')
160+
.callsFake(() => serviceNames);
159161

160162
(serverMulti as any).grpcClient = { addService: sinon.spy() };
161163

162164
await serverMulti.bindEvents();
163-
expect((serverMulti as any).grpcClient.addService.calledTwice).to.be.true;
165+
expect((serverMulti as any).grpcClient.addService.calledTwice).to.be
166+
.true;
164167
});
165168
});
166169
});

0 commit comments

Comments
 (0)