@@ -777,7 +777,7 @@ fn extract_token_from_invite_email(emails: &Emails) -> String {
777777#[ track_caller]
778778fn get_invitations ( user : & MockCookieUser , query : & str ) -> CrateOwnerInvitationsResponse {
779779 user. get_with_query :: < CrateOwnerInvitationsResponse > (
780- "/api/private/crate-owner-invitations " ,
780+ "/api/private/crate_owner_invitations " ,
781781 query,
782782 )
783783 . good ( )
@@ -1034,7 +1034,7 @@ fn invitations_list_paginated() {
10341034fn invitation_list_with_no_filter ( ) {
10351035 let ( _, _, owner, _) = TestApp :: init ( ) . with_token ( ) ;
10361036
1037- let resp = owner. get :: < ( ) > ( "/api/private/crate-owner-invitations " ) ;
1037+ let resp = owner. get :: < ( ) > ( "/api/private/crate_owner_invitations " ) ;
10381038 assert_eq ! ( resp. status( ) , StatusCode :: BAD_REQUEST ) ;
10391039 assert_eq ! (
10401040 resp. into_json( ) ,
@@ -1053,14 +1053,14 @@ fn invitation_list_other_users() {
10531053
10541054 // Retrieving our own invitations work.
10551055 let resp = owner. get_with_query :: < ( ) > (
1056- "/api/private/crate-owner-invitations " ,
1056+ "/api/private/crate_owner_invitations " ,
10571057 & format ! ( "invitee_id={}" , owner. as_model( ) . id) ,
10581058 ) ;
10591059 assert_eq ! ( resp. status( ) , StatusCode :: OK ) ;
10601060
10611061 // Retrieving other users' invitations doesn't work.
10621062 let resp = owner. get_with_query :: < ( ) > (
1063- "/api/private/crate-owner-invitations " ,
1063+ "/api/private/crate_owner_invitations " ,
10641064 & format ! ( "invitee_id={}" , other_user. as_model( ) . id) ,
10651065 ) ;
10661066 assert_eq ! ( resp. status( ) , StatusCode :: FORBIDDEN ) ;
@@ -1077,11 +1077,11 @@ fn invitation_list_other_crates() {
10771077
10781078 // Retrieving our own invitations work.
10791079 let resp =
1080- owner. get_with_query :: < ( ) > ( "/api/private/crate-owner-invitations " , "crate_name=crate_1" ) ;
1080+ owner. get_with_query :: < ( ) > ( "/api/private/crate_owner_invitations " , "crate_name=crate_1" ) ;
10811081 assert_eq ! ( resp. status( ) , StatusCode :: OK ) ;
10821082
10831083 // Retrieving other users' invitations doesn't work.
10841084 let resp =
1085- owner. get_with_query :: < ( ) > ( "/api/private/crate-owner-invitations " , "crate_name=crate_2" ) ;
1085+ owner. get_with_query :: < ( ) > ( "/api/private/crate_owner_invitations " , "crate_name=crate_2" ) ;
10861086 assert_eq ! ( resp. status( ) , StatusCode :: FORBIDDEN ) ;
10871087}
0 commit comments