@@ -22,7 +22,7 @@ import * as _ from 'lodash';
2222import 'mocha' ;
2323import { run_v1 } from 'googleapis' ;
2424
25- describe ( 'E2E tests' , function ( ) {
25+ describe ( 'E2E tests' , function ( ) {
2626 const {
2727 PARAMS ,
2828 ANNOTATIONS ,
@@ -36,7 +36,7 @@ describe('E2E tests', function() {
3636 let URL : string ;
3737 let client : CloudRun ;
3838 let service : run_v1 . Schema$Service ;
39- before ( async function ( ) {
39+ before ( async function ( ) {
4040 if ( process . env . URL ) {
4141 URL = process . env . URL ;
4242 } else {
@@ -50,7 +50,7 @@ describe('E2E tests', function() {
5050 }
5151 } ) ;
5252
53- it ( 'can make a request' , async function ( ) {
53+ it ( 'can make a request' , async function ( ) {
5454 // Requires ADC to be set
5555 const auth = new GoogleAuth ( ) ;
5656 const client = await auth . getIdTokenClient ( URL ) ;
@@ -59,7 +59,7 @@ describe('E2E tests', function() {
5959 expect ( response . data ) . to . include ( 'Congrat' ) ;
6060 } ) ;
6161
62- it ( 'has the correct env vars' , function ( ) {
62+ it ( 'has the correct env vars' , function ( ) {
6363 if ( ENV && service ) {
6464 const expected = parseEnvVars ( ENV ) ;
6565 const containers = _ . get ( service , 'spec.template.spec.containers' ) ;
@@ -74,7 +74,7 @@ describe('E2E tests', function() {
7474 }
7575 } ) ;
7676
77- it ( 'has the correct params' , function ( ) {
77+ it ( 'has the correct params' , function ( ) {
7878 if ( PARAMS && service ) {
7979 const expected = JSON . parse ( PARAMS ) ;
8080 const actual = _ . get ( service , 'spec.template.spec' ) ;
@@ -97,7 +97,7 @@ describe('E2E tests', function() {
9797 }
9898 } ) ;
9999
100- it ( 'has the correct annotations' , function ( ) {
100+ it ( 'has the correct annotations' , function ( ) {
101101 if ( ANNOTATIONS && service ) {
102102 const expected = JSON . parse ( ANNOTATIONS ) ;
103103 const actual = _ . get ( service , 'spec.template.metadata.annotations' ) ;
@@ -111,7 +111,7 @@ describe('E2E tests', function() {
111111 }
112112 } ) ;
113113
114- it ( 'has the correct labels' , function ( ) {
114+ it ( 'has the correct labels' , function ( ) {
115115 if ( LABELS && service ) {
116116 const expected = JSON . parse ( LABELS ) ;
117117 const actual = _ . get ( service , 'spec.template.metadata.labels' ) ;
@@ -125,15 +125,17 @@ describe('E2E tests', function() {
125125 }
126126 } ) ;
127127
128- it ( 'has the correct revision count' , async function ( ) {
128+ it ( 'has the correct revision count' , async function ( ) {
129129 if ( COUNT && SERVICE ) {
130130 const revisions = await client . listRevisions ( ) ;
131- const filtered = revisions . filter ( ( name ) => name . includes ( SERVICE . substring ( 0 , 52 ) ) ) ;
131+ const filtered = revisions . filter ( ( name ) =>
132+ name . includes ( SERVICE . substring ( 0 , 52 ) ) ,
133+ ) ;
132134 expect ( filtered . length ) . to . equal ( parseInt ( COUNT ) ) ;
133135 }
134136 } ) ;
135137
136- it ( 'has the correct revision name' , function ( ) {
138+ it ( 'has the correct revision name' , function ( ) {
137139 if ( REVISION && service ) {
138140 const actual = _ . get ( service , 'spec.template.metadata.name' ) ;
139141 expect ( REVISION ) . to . equal ( actual ) ;
0 commit comments