@@ -9,12 +9,12 @@ export const createUserTests: any = functions.auth.user().onCreate((u, c) => {
99
1010 return new TestSuite < UserMetadata > ( 'auth user onCreate' )
1111 . 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 } ` ) )
1313
1414 . it ( 'should not have a path' , ( user , context ) => expectEq ( ( context as any ) . path , undefined ) )
1515
1616 . 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' ) )
1818
1919 . it ( 'should have an eventId' , ( user , context ) => context . eventId )
2020
@@ -33,12 +33,12 @@ export const deleteUserTests: any = functions.auth.user().onDelete((u, c) => {
3333
3434 return new TestSuite < UserMetadata > ( 'auth user onDelete' )
3535 . 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 } ` ) )
3737
3838 . it ( 'should not have a path' , ( user , context ) => expectEq ( ( context as any ) . path , undefined ) )
3939
4040 . 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' ) )
4242
4343 . it ( 'should have an eventId' , ( user , context ) => context . eventId )
4444
0 commit comments