Update a test to reflect new arguments

This commit is contained in:
tzugen 2021-06-02 21:03:56 +02:00
parent 92fe7359ff
commit f8efb6d592
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
1 changed files with 4 additions and 2 deletions

View File

@ -11,9 +11,11 @@ class RequestCreatorTest {
@Test
fun `Should create valid load cover art request`() {
val entityId = "299"
val expectedUri = Uri.parse("$SCHEME://$AUTHORITY/$COVER_ART_PATH?$QUERY_ID=$entityId")
val size = 100L
val expectedUri =
Uri.parse("$SCHEME://$AUTHORITY/$COVER_ART_PATH?$QUERY_ID=$entityId&$SIZE=$size")
createLoadCoverArtRequest(entityId).compareTo(expectedUri).shouldBeEqualTo(0)
createLoadCoverArtRequest(entityId, size).compareTo(expectedUri).shouldBeEqualTo(0)
}
@Test