diff options
| author | Austin Hellyer <[email protected]> | 2016-12-28 21:06:16 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-12-28 21:06:16 -0800 |
| commit | c36841dd1c3f80141251ba01130333f43ff363d7 (patch) | |
| tree | 6fabd3f6b0c81ae7fc634f35411d54b5014ead4f /tests | |
| parent | Simplify Role's Ord impl (diff) | |
| download | serenity-c36841dd1c3f80141251ba01130333f43ff363d7.tar.xz serenity-c36841dd1c3f80141251ba01130333f43ff363d7.zip | |
Add user static avatar url methods
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_user.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_user.rs b/tests/test_user.rs index 3da1ec6..21c336d 100644 --- a/tests/test_user.rs +++ b/tests/test_user.rs @@ -17,9 +17,11 @@ 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")); 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")); user.avatar = None; assert!(user.avatar_url().is_none()); |