File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,8 @@ exports.ServiceObject = require('./service-object.js');
3434 * @type {module:commonGrpc/service }
3535 */
3636exports . Service = require ( './service.js' ) ;
37+
38+ /**
39+ * @type {module:commonGrpc/grpc }
40+ */
41+ exports . grpc = require ( 'grpc' ) ;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ var proxyquire = require('proxyquire');
2222var fakeOperation = { } ;
2323var fakeService = { } ;
2424var fakeServiceObject = { } ;
25+ var fakeGrpc = { } ;
2526
2627describe ( 'grpc-common' , function ( ) {
2728 var grpcCommon ;
@@ -30,15 +31,17 @@ describe('grpc-common', function() {
3031 grpcCommon = proxyquire ( '../src/index.js' , {
3132 './operation.js' : fakeOperation ,
3233 './service.js' : fakeService ,
33- './service-object.js' : fakeServiceObject
34+ './service-object.js' : fakeServiceObject ,
35+ grpc : fakeGrpc
3436 } ) ;
3537 } ) ;
3638
3739 it ( 'should correctly export the common modules' , function ( ) {
3840 assert . deepEqual ( grpcCommon , {
3941 Operation : fakeOperation ,
4042 Service : fakeService ,
41- ServiceObject : fakeServiceObject
43+ ServiceObject : fakeServiceObject ,
44+ grpc : fakeGrpc
4245 } ) ;
4346 } ) ;
4447} ) ;
You can’t perform that action at this time.
0 commit comments