@@ -777,7 +777,7 @@ fn extract_token_from_invite_email(emails: &Emails) -> String {
777
777
#[ track_caller]
778
778
fn get_invitations ( user : & MockCookieUser , query : & str ) -> CrateOwnerInvitationsResponse {
779
779
user. get_with_query :: < CrateOwnerInvitationsResponse > (
780
- "/api/private/crate-owner-invitations " ,
780
+ "/api/private/crate_owner_invitations " ,
781
781
query,
782
782
)
783
783
. good ( )
@@ -1034,7 +1034,7 @@ fn invitations_list_paginated() {
1034
1034
fn invitation_list_with_no_filter ( ) {
1035
1035
let ( _, _, owner, _) = TestApp :: init ( ) . with_token ( ) ;
1036
1036
1037
- let resp = owner. get :: < ( ) > ( "/api/private/crate-owner-invitations " ) ;
1037
+ let resp = owner. get :: < ( ) > ( "/api/private/crate_owner_invitations " ) ;
1038
1038
assert_eq ! ( resp. status( ) , StatusCode :: BAD_REQUEST ) ;
1039
1039
assert_eq ! (
1040
1040
resp. into_json( ) ,
@@ -1053,14 +1053,14 @@ fn invitation_list_other_users() {
1053
1053
1054
1054
// Retrieving our own invitations work.
1055
1055
let resp = owner. get_with_query :: < ( ) > (
1056
- "/api/private/crate-owner-invitations " ,
1056
+ "/api/private/crate_owner_invitations " ,
1057
1057
& format ! ( "invitee_id={}" , owner. as_model( ) . id) ,
1058
1058
) ;
1059
1059
assert_eq ! ( resp. status( ) , StatusCode :: OK ) ;
1060
1060
1061
1061
// Retrieving other users' invitations doesn't work.
1062
1062
let resp = owner. get_with_query :: < ( ) > (
1063
- "/api/private/crate-owner-invitations " ,
1063
+ "/api/private/crate_owner_invitations " ,
1064
1064
& format ! ( "invitee_id={}" , other_user. as_model( ) . id) ,
1065
1065
) ;
1066
1066
assert_eq ! ( resp. status( ) , StatusCode :: FORBIDDEN ) ;
@@ -1077,11 +1077,11 @@ fn invitation_list_other_crates() {
1077
1077
1078
1078
// Retrieving our own invitations work.
1079
1079
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" ) ;
1081
1081
assert_eq ! ( resp. status( ) , StatusCode :: OK ) ;
1082
1082
1083
1083
// Retrieving other users' invitations doesn't work.
1084
1084
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" ) ;
1086
1086
assert_eq ! ( resp. status( ) , StatusCode :: FORBIDDEN ) ;
1087
1087
}
0 commit comments