@@ -23,6 +23,27 @@ const error = new Error();
2323error . code = FAKE_STATUS_CODE ;
2424
2525describe ( 'ImageAnnotatorClient' , ( ) => {
26+ it ( 'has servicePath' , ( ) => {
27+ const servicePath = visionModule . v1 . ImageAnnotatorClient . servicePath ;
28+ assert ( servicePath ) ;
29+ } ) ;
30+
31+ it ( 'has apiEndpoint' , ( ) => {
32+ const apiEndpoint = visionModule . v1 . ImageAnnotatorClient . apiEndpoint ;
33+ assert ( apiEndpoint ) ;
34+ } ) ;
35+
36+ it ( 'has port' , ( ) => {
37+ const port = visionModule . v1 . ImageAnnotatorClient . port ;
38+ assert ( port ) ;
39+ assert ( typeof port === 'number' ) ;
40+ } ) ;
41+
42+ it ( 'should create a client with no options' , ( ) => {
43+ const client = new visionModule . v1 . ImageAnnotatorClient ( ) ;
44+ assert ( client ) ;
45+ } ) ;
46+
2647 describe ( 'batchAnnotateImages' , ( ) => {
2748 it ( 'invokes batchAnnotateImages without error' , done => {
2849 const client = new visionModule . v1 . ImageAnnotatorClient ( {
@@ -318,6 +339,27 @@ describe('ImageAnnotatorClient', () => {
318339 } ) ;
319340} ) ;
320341describe ( 'ProductSearchClient' , ( ) => {
342+ it ( 'has servicePath' , ( ) => {
343+ const servicePath = visionModule . v1 . ProductSearchClient . servicePath ;
344+ assert ( servicePath ) ;
345+ } ) ;
346+
347+ it ( 'has apiEndpoint' , ( ) => {
348+ const apiEndpoint = visionModule . v1 . ProductSearchClient . apiEndpoint ;
349+ assert ( apiEndpoint ) ;
350+ } ) ;
351+
352+ it ( 'has port' , ( ) => {
353+ const port = visionModule . v1 . ProductSearchClient . port ;
354+ assert ( port ) ;
355+ assert ( typeof port === 'number' ) ;
356+ } ) ;
357+
358+ it ( 'should create a client with no options' , ( ) => {
359+ const client = new visionModule . v1 . ProductSearchClient ( ) ;
360+ assert ( client ) ;
361+ } ) ;
362+
321363 describe ( 'createProductSet' , ( ) => {
322364 it ( 'invokes createProductSet without error' , done => {
323365 const client = new visionModule . v1 . ProductSearchClient ( {
0 commit comments