@@ -24,6 +24,27 @@ const error = new Error();
2424error . code = FAKE_STATUS_CODE ;
2525
2626describe ( 'PublisherClient' , ( ) => {
27+ it ( 'has servicePath' , ( ) => {
28+ const servicePath = pubsubModule . v1 . PublisherClient . servicePath ;
29+ assert ( servicePath ) ;
30+ } ) ;
31+
32+ it ( 'has apiEndpoint' , ( ) => {
33+ const apiEndpoint = pubsubModule . v1 . PublisherClient . apiEndpoint ;
34+ assert ( apiEndpoint ) ;
35+ } ) ;
36+
37+ it ( 'has port' , ( ) => {
38+ const port = pubsubModule . v1 . PublisherClient . port ;
39+ assert ( port ) ;
40+ assert ( typeof port === 'number' ) ;
41+ } ) ;
42+
43+ it ( 'should create a client with no options' , ( ) => {
44+ const client = new pubsubModule . v1 . PublisherClient ( ) ;
45+ assert ( client ) ;
46+ } ) ;
47+
2748 describe ( 'createTopic' , ( ) => {
2849 it ( 'invokes createTopic without error' , done => {
2950 const client = new pubsubModule . v1 . PublisherClient ( {
@@ -656,6 +677,27 @@ describe('PublisherClient', () => {
656677 } ) ;
657678} ) ;
658679describe ( 'SubscriberClient' , ( ) => {
680+ it ( 'has servicePath' , ( ) => {
681+ const servicePath = pubsubModule . v1 . SubscriberClient . servicePath ;
682+ assert ( servicePath ) ;
683+ } ) ;
684+
685+ it ( 'has apiEndpoint' , ( ) => {
686+ const apiEndpoint = pubsubModule . v1 . SubscriberClient . apiEndpoint ;
687+ assert ( apiEndpoint ) ;
688+ } ) ;
689+
690+ it ( 'has port' , ( ) => {
691+ const port = pubsubModule . v1 . SubscriberClient . port ;
692+ assert ( port ) ;
693+ assert ( typeof port === 'number' ) ;
694+ } ) ;
695+
696+ it ( 'should create a client with no options' , ( ) => {
697+ const client = new pubsubModule . v1 . SubscriberClient ( ) ;
698+ assert ( client ) ;
699+ } ) ;
700+
659701 describe ( 'createSubscription' , ( ) => {
660702 it ( 'invokes createSubscription without error' , done => {
661703 const client = new pubsubModule . v1 . SubscriberClient ( {
0 commit comments