@@ -32,9 +32,9 @@ function callHttpsTrigger(name: string, data: any, baseUrl) {
3232 'Content-Type' : 'application/json' ,
3333 } ,
3434 } ,
35- response => {
35+ ( response ) => {
3636 let body = '' ;
37- response . on ( 'data' , chunk => {
37+ response . on ( 'data' , ( chunk ) => {
3838 body += chunk ;
3939 } ) ;
4040 response . on ( 'end' , ( ) => resolve ( body ) ) ;
@@ -59,9 +59,9 @@ function callScheduleTrigger(functionName: string, region: string) {
5959 'Content-Type' : 'application/json' ,
6060 } ,
6161 } ,
62- response => {
62+ ( response ) => {
6363 let body = '' ;
64- response . on ( 'data' , chunk => {
64+ response . on ( 'data' , ( chunk ) => {
6565 body += chunk ;
6666 } ) ;
6767 response . on ( 'end' , ( ) => resolve ( body ) ) ;
@@ -114,7 +114,7 @@ export const integrationTests: any = functions
114114 password : 'secret' ,
115115 displayName : `${ testId } ` ,
116116 } )
117- . then ( userRecord => {
117+ . then ( ( userRecord ) => {
118118 // A user deletion to trigger the Firebase Auth user deletion tests.
119119 admin . auth ( ) . deleteUser ( userRecord . uid ) ;
120120 } ) ,
@@ -160,7 +160,7 @@ export const integrationTests: any = functions
160160 let ref = admin . database ( ) . ref ( `testRuns/${ testId } ` ) ;
161161 return new Promise ( ( resolve , reject ) => {
162162 let testsExecuted = 0 ;
163- ref . on ( 'child_added' , snapshot => {
163+ ref . on ( 'child_added' , ( snapshot ) => {
164164 testsExecuted += 1 ;
165165 if ( snapshot . key != 'timestamp' && ! snapshot . val ( ) . passed ) {
166166 reject (
@@ -185,7 +185,7 @@ export const integrationTests: any = functions
185185 ref . off ( ) ; // No more need to listen.
186186 return Promise . resolve ( ) ;
187187 } )
188- . catch ( err => {
188+ . catch ( ( err ) => {
189189 ref . off ( ) ; // No more need to listen.
190190 return Promise . reject ( err ) ;
191191 } ) ;
@@ -194,7 +194,7 @@ export const integrationTests: any = functions
194194 console . log ( 'All tests pass!' ) ;
195195 resp . status ( 200 ) . send ( 'PASS \n' ) ;
196196 } )
197- . catch ( err => {
197+ . catch ( ( err ) => {
198198 console . log ( `Some tests failed: ${ err } ` ) ;
199199 resp
200200 . status ( 500 )
0 commit comments