@@ -8,21 +8,29 @@ export const createUserTests: any = functions.auth.user().onCreate((u, c) => {
88 console . log ( `testId is ${ testId } ` ) ;
99
1010 return new TestSuite < UserMetadata > ( 'auth user onCreate' )
11- . it ( 'should have a project as resource' , ( user , context ) => expectEq (
12- context . resource . name , `projects/${ process . env . GCLOUD_PROJECT } ` ) )
11+ . it ( 'should have a project as resource' , ( user , context ) =>
12+ expectEq ( context . resource . name , `projects/${ process . env . GCLOUD_PROJECT } ` )
13+ )
1314
14- . it ( 'should not have a path' , ( user , context ) => expectEq ( ( context as any ) . path , undefined ) )
15+ . it ( 'should not have a path' , ( user , context ) =>
16+ expectEq ( ( context as any ) . path , undefined )
17+ )
1518
16- . it ( 'should have the correct eventType' , ( user , context ) => expectEq (
17- context . eventType , 'google.firebase.auth.user.create' ) )
19+ . it ( 'should have the correct eventType' , ( user , context ) =>
20+ expectEq ( context . eventType , 'google.firebase.auth.user.create' )
21+ )
1822
19- . it ( 'should have an eventId' , ( user , context ) => context . eventId )
23+ . it ( 'should have an eventId' , ( user , context ) => context . eventId )
2024
2125 . it ( 'should have a timestamp' , ( user , context ) => context . timestamp )
2226
23- . it ( 'should not have auth' , ( user , context ) => expectEq ( ( context as any ) . auth , undefined ) )
27+ . it ( 'should not have auth' , ( user , context ) =>
28+ expectEq ( ( context as any ) . auth , undefined )
29+ )
2430
25- . it ( 'should not have action' , ( user , context ) => expectEq ( ( context as any ) . action , undefined ) )
31+ . it ( 'should not have action' , ( user , context ) =>
32+ expectEq ( ( context as any ) . action , undefined )
33+ )
2634
2735 . run ( testId , u , c ) ;
2836} ) ;
@@ -32,21 +40,29 @@ export const deleteUserTests: any = functions.auth.user().onDelete((u, c) => {
3240 console . log ( `testId is ${ testId } ` ) ;
3341
3442 return new TestSuite < UserMetadata > ( 'auth user onDelete' )
35- . it ( 'should have a project as resource' , ( user , context ) => expectEq (
36- context . resource . name , `projects/${ process . env . GCLOUD_PROJECT } ` ) )
43+ . it ( 'should have a project as resource' , ( user , context ) =>
44+ expectEq ( context . resource . name , `projects/${ process . env . GCLOUD_PROJECT } ` )
45+ )
3746
38- . it ( 'should not have a path' , ( user , context ) => expectEq ( ( context as any ) . path , undefined ) )
47+ . it ( 'should not have a path' , ( user , context ) =>
48+ expectEq ( ( context as any ) . path , undefined )
49+ )
3950
40- . it ( 'should have the correct eventType' , ( user , context ) => expectEq (
41- context . eventType , 'google.firebase.auth.user.delete' ) )
51+ . it ( 'should have the correct eventType' , ( user , context ) =>
52+ expectEq ( context . eventType , 'google.firebase.auth.user.delete' )
53+ )
4254
4355 . it ( 'should have an eventId' , ( user , context ) => context . eventId )
4456
4557 . it ( 'should have a timestamp' , ( user , context ) => context . timestamp )
4658
47- . it ( 'should not have auth' , ( user , context ) => expectEq ( ( context as any ) . auth , undefined ) )
59+ . it ( 'should not have auth' , ( user , context ) =>
60+ expectEq ( ( context as any ) . auth , undefined )
61+ )
4862
49- . it ( 'should not have action' , ( user , context ) => expectEq ( ( context as any ) . action , undefined ) )
63+ . it ( 'should not have action' , ( user , context ) =>
64+ expectEq ( ( context as any ) . action , undefined )
65+ )
5066
5167 . run ( testId , u , c ) ;
5268} ) ;
0 commit comments