@@ -9,12 +9,12 @@ export const createUserTests: any = functions.auth.user().onCreate((u, c) => {
9
9
10
10
return new TestSuite < UserMetadata > ( 'auth user onCreate' )
11
11
. it ( 'should have a project as resource' , ( user , context ) => expectEq (
12
- context . resource , `projects/${ process . env . GCLOUD_PROJECT } ` ) )
12
+ context . resource . name , `projects/${ process . env . GCLOUD_PROJECT } ` ) )
13
13
14
14
. it ( 'should not have a path' , ( user , context ) => expectEq ( ( context as any ) . path , undefined ) )
15
15
16
16
. it ( 'should have the correct eventType' , ( user , context ) => expectEq (
17
- context . eventType , 'providers/ firebase.auth/eventTypes/ user.create' ) )
17
+ context . eventType , 'google. firebase.auth. user.create' ) )
18
18
19
19
. it ( 'should have an eventId' , ( user , context ) => context . eventId )
20
20
@@ -33,12 +33,12 @@ export const deleteUserTests: any = functions.auth.user().onDelete((u, c) => {
33
33
34
34
return new TestSuite < UserMetadata > ( 'auth user onDelete' )
35
35
. it ( 'should have a project as resource' , ( user , context ) => expectEq (
36
- context . resource , `projects/${ process . env . GCLOUD_PROJECT } ` ) )
36
+ context . resource . name , `projects/${ process . env . GCLOUD_PROJECT } ` ) )
37
37
38
38
. it ( 'should not have a path' , ( user , context ) => expectEq ( ( context as any ) . path , undefined ) )
39
39
40
40
. it ( 'should have the correct eventType' , ( user , context ) => expectEq (
41
- context . eventType , 'providers/ firebase.auth/eventTypes/ user.delete' ) )
41
+ context . eventType , 'google. firebase.auth. user.delete' ) )
42
42
43
43
. it ( 'should have an eventId' , ( user , context ) => context . eventId )
44
44
0 commit comments