File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,11 @@ export class GoogleAuth {
9292 */ 
9393 public  UserRefreshClient  =  UserRefreshClient ; 
9494
95+  /** 
96+  * Export DefaultTransporter as a static property of the class. 
97+  */ 
98+  public  static  DefaultTransporter  =  DefaultTransporter ; 
99+ 
95100 /** 
96101 * Obtains the default project ID for the application.. 
97102 * @param  {function= } callback Optional callback. 
Original file line number Diff line number Diff line change 1616import  *  as  assert  from  'assert' ; 
1717
1818import  { GoogleAuth }  from  '../lib/auth/googleauth' ; 
19+ import  { DefaultTransporter }  from  '../lib/transporters' ; 
1920
2021describe ( 'module' ,  ( )  =>  { 
2122 it ( 'should export GoogleAuth as a function' ,  ( )  =>  { 
2223 const  cjs  =  require ( '../' ) ; 
2324 assert . strictEqual ( typeof  cjs ,  'function' ) ; 
2425 assert . strictEqual ( cjs ,  GoogleAuth ) ; 
2526 } ) ; 
27+ 
28+  it ( 'should publicly export DefaultTransporter' ,  ( )  =>  { 
29+  const  cjs  =  require ( '../' ) ; 
30+  assert . strictEqual ( cjs . DefaultTransporter ,  DefaultTransporter ) ; 
31+  } ) ; 
2632} ) ; 
                         You can’t perform that action at this time. 
           
                  
0 commit comments