[go: nahoru, domu]

Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinnot committed Jun 21, 2019
1 parent facd69c commit 819a564
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions integration_test/functions/src/database-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
)
)

Expand Down
4 changes: 1 addition & 3 deletions integration_test/functions/src/firestore-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
)
)

Expand Down
8 changes: 2 additions & 6 deletions integration_test/functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down Expand Up @@ -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}`
);
});
});

0 comments on commit 819a564

Please sign in to comment.