From 819a564e5334738fe2b5fa5a8b22391feea7e8c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Natan=20S=C4=85gol?= Date: Fri, 21 Jun 2019 16:29:46 +0200 Subject: [PATCH] Reformat --- integration_test/functions/src/database-tests.ts | 4 +--- integration_test/functions/src/firestore-tests.ts | 4 +--- integration_test/functions/src/index.ts | 8 ++------ 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/integration_test/functions/src/database-tests.ts b/integration_test/functions/src/database-tests.ts index 403c85bc7..215e6bd3b 100644 --- a/integration_test/functions/src/database-tests.ts +++ b/integration_test/functions/src/database-tests.ts @@ -50,9 +50,7 @@ export const databaseTests: any = functions.database .it('should have refs resources', (change, context) => expectEq( context.resource.name, - `projects/_/instances/${process.env.GCLOUD_PROJECT}/refs/dbTests/${ - context.params.testId - }/start` + `projects/_/instances/${process.env.GCLOUD_PROJECT}/refs/dbTests/${context.params.testId}/start` ) ) diff --git a/integration_test/functions/src/firestore-tests.ts b/integration_test/functions/src/firestore-tests.ts index de6581392..e5f8acdbf 100644 --- a/integration_test/functions/src/firestore-tests.ts +++ b/integration_test/functions/src/firestore-tests.ts @@ -22,9 +22,7 @@ export const firestoreTests: any = functions .it('should have well-formatted resource', (snap, context) => expectEq( context.resource.name, - `projects/${ - process.env.GCLOUD_PROJECT - }/databases/(default)/documents/tests/${context.params.documentId}` + `projects/${process.env.GCLOUD_PROJECT}/databases/(default)/documents/tests/${context.params.documentId}` ) ) diff --git a/integration_test/functions/src/index.ts b/integration_test/functions/src/index.ts index 55dadd739..9360bd615 100644 --- a/integration_test/functions/src/index.ts +++ b/integration_test/functions/src/index.ts @@ -49,9 +49,7 @@ function callScheduleTrigger(functionName: string, region: string) { { method: 'POST', host: 'cloudscheduler.googleapis.com', - path: `projects/${ - firebaseConfig.projectId - }/locations/us-central1/jobs/firebase-schedule-${functionName}-${region}:run`, + path: `projects/${firebaseConfig.projectId}/locations/us-central1/jobs/firebase-schedule-${functionName}-${region}:run`, headers: { 'Content-Type': 'application/json', }, @@ -196,9 +194,7 @@ export const integrationTests: any = functions resp .status(500) .send( - `FAIL - details at https://${ - process.env.GCLOUD_PROJECT - }.firebaseio.com/testRuns/${testId}` + `FAIL - details at https://${process.env.GCLOUD_PROJECT}.firebaseio.com/testRuns/${testId}` ); }); });