File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ describe('main', () => {
62
62
expect ( typeof context . eventId ) . to . equal ( 'string' ) ;
63
63
expect ( context . resource . service ) . to . equal ( 'service' ) ;
64
64
expect (
65
- / r e f \/ w i l d c a r d [ 1 - 9 ] \/ n e s t e d \/ a n o t h e r W i l d c a r d [ 1 - 9 ] / . test (
66
- context . resource . name
67
- )
65
+ / r e f \/ w i l d c a r d [ 1 - 9 ] \/ n e s t e d \/ a n o t h e r W i l d c a r d [ 1 - 9 ] / . test (
66
+ context . resource . name
67
+ )
68
68
) . to . be . true ;
69
69
expect ( context . eventType ) . to . equal ( 'event' ) ;
70
70
expect ( Date . parse ( context . timestamp ) ) . to . be . greaterThan ( 0 ) ;
@@ -122,10 +122,10 @@ describe('main', () => {
122
122
it ( 'should throw when passed invalid options' , ( ) => {
123
123
const wrapped = wrap ( constructBackgroundCF ( ) ) ;
124
124
expect ( ( ) =>
125
- wrapped ( 'data' , {
126
- auth : { uid : 'abc' } ,
127
- isInvalid : true ,
128
- } as any )
125
+ wrapped ( 'data' , {
126
+ auth : { uid : 'abc' } ,
127
+ isInvalid : true ,
128
+ } as any )
129
129
) . to . throw ( ) ;
130
130
} ) ;
131
131
@@ -252,23 +252,22 @@ describe('main', () => {
252
252
auth : { uid : 'abc' } ,
253
253
app : { appId : 'efg' } ,
254
254
instanceIdToken : '123' ,
255
- rawRequest : { body : 'hello' }
255
+ rawRequest : { body : 'hello' } ,
256
256
} ) . context ;
257
257
expect ( context . auth ) . to . deep . equal ( { uid : 'abc' } ) ;
258
258
expect ( context . app ) . to . deep . equal ( { appId : 'efg' } ) ;
259
259
expect ( context . instanceIdToken ) . to . equal ( '123' ) ;
260
- expect ( context . rawRequest ) . to . deep . equal ( { body : 'hello' } ) ;
260
+ expect ( context . rawRequest ) . to . deep . equal ( { body : 'hello' } ) ;
261
261
} ) ;
262
262
263
263
it ( 'should throw when passed invalid options' , ( ) => {
264
264
expect ( ( ) =>
265
- wrappedCF ( 'data' , {
266
- auth : { uid : 'abc' } ,
267
- isInvalid : true ,
268
- } as any )
265
+ wrappedCF ( 'data' , {
266
+ auth : { uid : 'abc' } ,
267
+ isInvalid : true ,
268
+ } as any )
269
269
) . to . throw ( ) ;
270
270
} ) ;
271
-
272
271
} ) ;
273
272
} ) ;
274
273
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ import { testApp } from '../app';
28
28
29
29
import * as http from 'http' ;
30
30
31
- function dateToTimestampProto ( timeString ?: string ) : { seconds : number , nanos : number } | undefined {
31
+ function dateToTimestampProto (
32
+ timeString ?: string
33
+ ) : { seconds : number ; nanos : number } | undefined {
32
34
if ( typeof timeString === 'undefined' ) {
33
35
return ;
34
36
}
You can’t perform that action at this time.
0 commit comments