File tree Expand file tree Collapse file tree
packages/google-cloud-vision Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ function Vision(options) {
6060 return new Vision ( options ) ;
6161 }
6262
63+ options = extend ( { } , options , {
64+ libName : 'gccl' ,
65+ libVersion : require ( '../package.json' ) . version
66+ } ) ;
67+
6368 this . api = {
6469 Vision : v1 ( options ) . imageAnnotatorClient ( options )
6570 } ;
Original file line number Diff line number Diff line change @@ -106,11 +106,15 @@ describe('Vision', function() {
106106 var expectedVisionClient = { } ;
107107
108108 fakeV1Override = function ( options ) {
109- assert . strictEqual ( options , OPTIONS ) ;
109+ var expected = extend ( { } , OPTIONS , {
110+ libName : 'gccl' ,
111+ libVersion : require ( '../package.json' ) . version
112+ } ) ;
113+ assert . deepStrictEqual ( options , expected ) ;
110114
111115 return {
112116 imageAnnotatorClient : function ( options ) {
113- assert . strictEqual ( options , OPTIONS ) ;
117+ assert . deepStrictEqual ( options , expected ) ;
114118 return expectedVisionClient ;
115119 }
116120 } ;
You can’t perform that action at this time.
0 commit comments