|
1 | | -import * as functions from 'firebase-functions'; |
2 | | -import * as https from 'https'; |
3 | | -import * as admin from 'firebase-admin'; |
4 | 1 | import { Request, Response } from 'express'; |
| 2 | +import * as admin from 'firebase-admin'; |
| 3 | +import * as functions from 'firebase-functions'; |
5 | 4 | import * as fs from 'fs'; |
6 | | - |
7 | | -import * as PubSub from '@google-cloud/pubsub'; |
8 | | -const pubsub = PubSub(); |
| 5 | +import * as https from 'https'; |
9 | 6 |
|
10 | 7 | export * from './pubsub-tests'; |
11 | 8 | export * from './database-tests'; |
@@ -82,7 +79,7 @@ export const integrationTests: any = functions |
82 | 79 | .split('.') |
83 | 80 | .slice(1) |
84 | 81 | .join('.'); |
85 | | - let pubsub: any = require('@google-cloud/pubsub')(); |
| 82 | + const pubsub: any = require('@google-cloud/pubsub')(); |
86 | 83 | const testId = admin |
87 | 84 | .database() |
88 | 85 | .ref() |
@@ -155,7 +152,7 @@ export const integrationTests: any = functions |
155 | 152 | .then(() => { |
156 | 153 | // On test completion, check that all tests pass and reply "PASS", or provide further details. |
157 | 154 | console.log('Waiting for all tests to report they pass...'); |
158 | | - let ref = admin.database().ref(`testRuns/${testId}`); |
| 155 | + const ref = admin.database().ref(`testRuns/${testId}`); |
159 | 156 | return new Promise((resolve, reject) => { |
160 | 157 | let testsExecuted = 0; |
161 | 158 | ref.on('child_added', (snapshot) => { |
|
0 commit comments