Send a friend request
This commit is contained in:
parent
cd303b0fef
commit
fb49c589af
|
@ -21,7 +21,12 @@ async fn test_get_mutual_relationships() {
|
||||||
let bundle = common::setup().await;
|
let bundle = common::setup().await;
|
||||||
let mut belongs_to = bundle.instance;
|
let mut belongs_to = bundle.instance;
|
||||||
let mut user = bundle.user;
|
let mut user = bundle.user;
|
||||||
let other_user = belongs_to.register_account(®ister_schema).await.unwrap();
|
let mut other_user = belongs_to.register_account(®ister_schema).await.unwrap();
|
||||||
|
let friend_request_schema = types::FriendRequestSendSchema {
|
||||||
|
username: user.object.username.clone(),
|
||||||
|
discriminator: Some(user.object.discriminator.clone()),
|
||||||
|
};
|
||||||
|
other_user.send_friend_request(friend_request_schema).await;
|
||||||
let relationships = user
|
let relationships = user
|
||||||
.get_mutual_relationships(&other_user.object.id.to_string())
|
.get_mutual_relationships(&other_user.object.id.to_string())
|
||||||
.await
|
.await
|
||||||
|
|
Loading…
Reference in New Issue