File tree Expand file tree Collapse file tree
handwritten/error-reporting/test/unit/google-apis Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,20 +65,18 @@ function verifyReportedMessage(
6565 } ) ;
6666}
6767describe ( 'RequestHandler' , ( ) => {
68- it ( 'should not request OAuth2 token if key is provided' ,
69- ( done : ( ) => void ) => {
70- const config = {
71- ignoreEnvironmentCheck : true ,
72- key : 'key' ,
73- } ;
74- const message = 'Made OAuth2 Token Request' ;
75- verifyReportedMessage (
76- config , new Error ( message ) , {
77- info : 'API key provided; skipping OAuth2 token request.' ,
78- } ,
79- done ) ;
80- } )
81- . timeout ( 4000 ) ;
68+ it ( 'should not request OAuth2 token if key is provided' , done => {
69+ const config = {
70+ ignoreEnvironmentCheck : true ,
71+ key : 'key' ,
72+ } ;
73+ const message = 'Made OAuth2 Token Request' ;
74+ verifyReportedMessage (
75+ config , new Error ( message ) , {
76+ info : 'API key provided; skipping OAuth2 token request.' ,
77+ } ,
78+ done ) ;
79+ } ) . timeout ( 8000 ) ;
8280
8381 it ( 'should issue a warning if it cannot communicate with the API' ,
8482 ( done : ( ) => void ) => {
You can’t perform that action at this time.
0 commit comments