-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
0 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,34 +17,6 @@ class GravatarUtilsTest { | |
) | ||
} | ||
|
||
@Test | ||
fun `emailAddressToGravatarUrl supports size from 1 to 2048`() { | ||
assertEquals( | ||
"https://www.gravatar.com/avatar/31c5543c1734d25c7206f5fd591525d0295bec6fe84ff82f946a34fe970a1e66" + | ||
"?s=1", | ||
emailAddressToGravatarUrl("[email protected]", size = 1), | ||
) | ||
} | ||
|
||
@Test | ||
fun `emailAddressToGravatarUrl supports size 2048`() { | ||
assertEquals( | ||
"https://www.gravatar.com/avatar/31c5543c1734d25c7206f5fd591525d0295bec6fe84ff82f946a34fe970a1e66" + | ||
"?s=2048", | ||
emailAddressToGravatarUrl("[email protected]", size = 2048), | ||
) | ||
} | ||
|
||
@Test | ||
fun `emailAddressToGravatarUrl fails on size strictly greater than 2048`() { | ||
assertThrows(IllegalArgumentException::class.java) { | ||
emailAddressToGravatarUrl( | ||
"https://example.com/avatar/oiresntioes", | ||
size = 2049, | ||
) | ||
} | ||
} | ||
|
||
@Test | ||
fun `emailAddressToGravatarUrl must set the size but no other query param if not set`() { | ||
assertEquals( | ||
|