@@ -43,12 +43,12 @@ describe('unit/service/rest-service', () => {
4343 const service = new RestService ( functionsMock , { } ) ;
4444
4545 nock ( 'https://faked.com' )
46- . post ( '/fake-project/us-central1/test-function' )
47- . reply ( 200 ) ;
46+ . post ( '/fake-project/us-central1/test-function' )
47+ . reply ( 200 ) ;
4848
4949 request ( service . server )
50- . post ( '/v1/projects/fake-project/locations/us-central1/functions/test-function:call' )
51- . expect ( 200 , done ) ;
50+ . post ( '/v1/projects/fake-project/locations/us-central1/functions/test-function:call' )
51+ . expect ( 200 , done ) ;
5252 } ) ;
5353
5454 it ( `should fill in correct default resource and eventType` , done => {
@@ -68,15 +68,15 @@ describe('unit/service/rest-service', () => {
6868 const service = new RestService ( functionsMock , { } ) ;
6969
7070 nock ( 'https://faked.com' )
71- . post ( '/fake-project/us-central1/test-function' , {
72- resource : 'fake.resource' ,
73- eventType : 'fake.type'
74- } )
75- . reply ( 200 ) ;
71+ . post ( '/fake-project/us-central1/test-function' , {
72+ resource : 'fake.resource' ,
73+ eventType : 'fake.type'
74+ } )
75+ . reply ( 200 ) ;
7676
7777 request ( service . server )
78- . post ( '/v1/projects/fake-project/locations/us-central1/functions/test-function:call' )
79- . expect ( 200 , done ) ;
78+ . post ( '/v1/projects/fake-project/locations/us-central1/functions/test-function:call' )
79+ . expect ( 200 , done ) ;
8080 } ) ;
8181
8282 it ( `should default auth to {admin:true} for Firebase database functions` , done => {
@@ -96,14 +96,14 @@ describe('unit/service/rest-service', () => {
9696 const service = new RestService ( functionsMock , { } ) ;
9797
9898 nock ( 'https://faked.com' )
99- . post ( '/fake-project/us-central1/test-function' , {
100- auth : { admin : true }
101- } )
102- . reply ( 200 ) ;
99+ . post ( '/fake-project/us-central1/test-function' , {
100+ auth : { admin : true }
101+ } )
102+ . reply ( 200 ) ;
103103
104104 request ( service . server )
105- . post ( '/v1/projects/fake-project/locations/us-central1/functions/test-function:call' )
106- . expect ( 200 , done ) ;
105+ . post ( '/v1/projects/fake-project/locations/us-central1/functions/test-function:call' )
106+ . expect ( 200 , done ) ;
107107 } ) ;
108108
109109 it ( `should allow auth, eventType, and resource to be custom-defined` , done => {
@@ -123,19 +123,19 @@ describe('unit/service/rest-service', () => {
123123 const service = new RestService ( functionsMock , { } ) ;
124124
125125 nock ( 'https://faked.com' )
126- . post ( '/fake-project/us-central1/test-function' , {
127- auth : { admin : false } ,
128- resource : 'custom.resource'
129- } )
130- . reply ( 200 ) ;
126+ . post ( '/fake-project/us-central1/test-function' , {
127+ auth : { admin : false } ,
128+ resource : 'custom.resource'
129+ } )
130+ . reply ( 200 ) ;
131131
132132 request ( service . server )
133- . post ( '/v1/projects/fake-project/locations/us-central1/functions/test-function:call' )
134- . send ( {
135- auth : { admin : false } ,
136- resource : 'custom.resource'
137- } )
138- . expect ( 200 , done ) ;
133+ . post ( '/v1/projects/fake-project/locations/us-central1/functions/test-function:call' )
134+ . send ( {
135+ auth : { admin : false } ,
136+ resource : 'custom.resource'
137+ } )
138+ . expect ( 200 , done ) ;
139139 } ) ;
140140 } ) ;
141141} ) ;
0 commit comments