@@ -22,7 +22,7 @@ import * as _ from 'lodash';
22
22
import 'mocha' ;
23
23
import { run_v1 } from 'googleapis' ;
24
24
25
- describe ( 'E2E tests' , function ( ) {
25
+ describe ( 'E2E tests' , function ( ) {
26
26
const {
27
27
PARAMS ,
28
28
ANNOTATIONS ,
@@ -36,7 +36,7 @@ describe('E2E tests', function() {
36
36
let URL : string ;
37
37
let client : CloudRun ;
38
38
let service : run_v1 . Schema$Service ;
39
- before ( async function ( ) {
39
+ before ( async function ( ) {
40
40
if ( process . env . URL ) {
41
41
URL = process . env . URL ;
42
42
} else {
@@ -50,7 +50,7 @@ describe('E2E tests', function() {
50
50
}
51
51
} ) ;
52
52
53
- it ( 'can make a request' , async function ( ) {
53
+ it ( 'can make a request' , async function ( ) {
54
54
// Requires ADC to be set
55
55
const auth = new GoogleAuth ( ) ;
56
56
const client = await auth . getIdTokenClient ( URL ) ;
@@ -59,7 +59,7 @@ describe('E2E tests', function() {
59
59
expect ( response . data ) . to . include ( 'Congrat' ) ;
60
60
} ) ;
61
61
62
- it ( 'has the correct env vars' , function ( ) {
62
+ it ( 'has the correct env vars' , function ( ) {
63
63
if ( ENV && service ) {
64
64
const expected = parseEnvVars ( ENV ) ;
65
65
const containers = _ . get ( service , 'spec.template.spec.containers' ) ;
@@ -74,7 +74,7 @@ describe('E2E tests', function() {
74
74
}
75
75
} ) ;
76
76
77
- it ( 'has the correct params' , function ( ) {
77
+ it ( 'has the correct params' , function ( ) {
78
78
if ( PARAMS && service ) {
79
79
const expected = JSON . parse ( PARAMS ) ;
80
80
const actual = _ . get ( service , 'spec.template.spec' ) ;
@@ -97,7 +97,7 @@ describe('E2E tests', function() {
97
97
}
98
98
} ) ;
99
99
100
- it ( 'has the correct annotations' , function ( ) {
100
+ it ( 'has the correct annotations' , function ( ) {
101
101
if ( ANNOTATIONS && service ) {
102
102
const expected = JSON . parse ( ANNOTATIONS ) ;
103
103
const actual = _ . get ( service , 'spec.template.metadata.annotations' ) ;
@@ -111,7 +111,7 @@ describe('E2E tests', function() {
111
111
}
112
112
} ) ;
113
113
114
- it ( 'has the correct labels' , function ( ) {
114
+ it ( 'has the correct labels' , function ( ) {
115
115
if ( LABELS && service ) {
116
116
const expected = JSON . parse ( LABELS ) ;
117
117
const actual = _ . get ( service , 'spec.template.metadata.labels' ) ;
@@ -125,15 +125,17 @@ describe('E2E tests', function() {
125
125
}
126
126
} ) ;
127
127
128
- it ( 'has the correct revision count' , async function ( ) {
128
+ it ( 'has the correct revision count' , async function ( ) {
129
129
if ( COUNT && SERVICE ) {
130
130
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
+ ) ;
132
134
expect ( filtered . length ) . to . equal ( parseInt ( COUNT ) ) ;
133
135
}
134
136
} ) ;
135
137
136
- it ( 'has the correct revision name' , function ( ) {
138
+ it ( 'has the correct revision name' , function ( ) {
137
139
if ( REVISION && service ) {
138
140
const actual = _ . get ( service , 'spec.template.metadata.name' ) ;
139
141
expect ( REVISION ) . to . equal ( actual ) ;
0 commit comments