aboutsummaryrefslogtreecommitdiff
path: root/tests/test_user.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-27 08:10:41 +0200
committeracdenisSK <[email protected]>2017-07-27 08:10:41 +0200
commit70b5097aaac85f970c32ceb988dbb5f5d575ee0f (patch)
treed2f391d3b552cfae58b74748a2a2aa5ae80c7986 /tests/test_user.rs
parentrustfmt (diff)
downloadserenity-70b5097aaac85f970c32ceb988dbb5f5d575ee0f.tar.xz
serenity-70b5097aaac85f970c32ceb988dbb5f5d575ee0f.zip
Change the config a bit, and a few nitpicks
Diffstat (limited to 'tests/test_user.rs')
-rw-r--r--tests/test_user.rs32
1 files changed, 20 insertions, 12 deletions
diff --git a/tests/test_user.rs b/tests/test_user.rs
index 51f32e1..8d3f780 100644
--- a/tests/test_user.rs
+++ b/tests/test_user.rs
@@ -18,20 +18,28 @@ mod model {
fn test_core() {
let mut user = gen();
- assert!(user.avatar_url()
- .unwrap()
- .ends_with("/avatars/210/abc.webp?size=1024"));
- assert!(user.static_avatar_url()
- .unwrap()
- .ends_with("/avatars/210/abc.webp?size=1024"));
+ assert!(
+ user.avatar_url()
+ .unwrap()
+ .ends_with("/avatars/210/abc.webp?size=1024")
+ );
+ assert!(
+ user.static_avatar_url()
+ .unwrap()
+ .ends_with("/avatars/210/abc.webp?size=1024")
+ );
user.avatar = Some("a_aaa".to_owned());
- assert!(user.avatar_url()
- .unwrap()
- .ends_with("/avatars/210/a_aaa.gif?size=1024"));
- assert!(user.static_avatar_url()
- .unwrap()
- .ends_with("/avatars/210/a_aaa.webp?size=1024"));
+ assert!(
+ user.avatar_url()
+ .unwrap()
+ .ends_with("/avatars/210/a_aaa.gif?size=1024")
+ );
+ assert!(
+ user.static_avatar_url()
+ .unwrap()
+ .ends_with("/avatars/210/a_aaa.webp?size=1024")
+ );
user.avatar = None;
assert!(user.avatar_url().is_none());