Skip to content

Commit

Permalink
Remove unecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Feb 13, 2024
1 parent 21cebe1 commit 2fdf911
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions gravatar/src/test/java/com/gravatar/GravatarUtilsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2fdf911

Please sign in to comment.