11import { PubSub } from '@google-cloud/pubsub' ;
22import { Request , Response } from 'express' ;
3- import fetch from 'node-fetch' ;
43import * as admin from 'firebase-admin' ;
54import * as functions from 'firebase-functions' ;
65import * as fs from 'fs' ;
6+ import fetch from 'node-fetch' ;
77
88import * as v1 from './v1' ;
99import * as v2 from './v2' ;
@@ -15,8 +15,8 @@ const getNumTests = (m: object): number => {
1515const numTests = getNumTests ( v1 ) + getNumTests ( v2 ) ;
1616export { v1 , v2 } ;
1717
18- import * as testLab from './v1/testLab-utils' ;
1918import { REGION } from './region' ;
19+ import * as testLab from './v1/testLab-utils' ;
2020
2121const firebaseConfig = JSON . parse ( process . env . FIREBASE_CONFIG ) ;
2222admin . initializeApp ( ) ;
@@ -115,7 +115,7 @@ async function updateRemoteConfig(
115115 }
116116}
117117
118- function v1Tests ( testId : string , accessToken : string ) : Promise < void > [ ] {
118+ function v1Tests ( testId : string , accessToken : string ) : Array < Promise < void > > {
119119 return [
120120 // A database write to trigger the Firebase Realtime Database tests.
121121 admin
@@ -159,7 +159,7 @@ function v1Tests(testId: string, accessToken: string): Promise<void>[] {
159159 ] ;
160160}
161161
162- function v2Tests ( testId : string , accessToken : string ) : Promise < void > [ ] {
162+ function v2Tests ( testId : string , accessToken : string ) : Array < Promise < void > > {
163163 return [
164164 // Invoke a callable HTTPS trigger.
165165 callV2HttpsTrigger ( 'v2-callabletests' , { foo : 'bar' , testId } , accessToken ) ,
0 commit comments