All checks were successful
review/firstmate Exact-diff check: JELLYFIN first, API key last; URL prefill from one constant; unit test; apk-debug+test green
17 lines
483 B
Kotlin
17 lines
483 B
Kotlin
package com.github.damontecres.wholphin
|
|
|
|
import org.junit.Assert.assertEquals
|
|
import org.junit.Test
|
|
|
|
class WolfskinDefaultsTest {
|
|
@Test
|
|
fun emptyUrlIsPrefilledWithWolfskinSeerrUrl() {
|
|
assertEquals(WolfskinDefaults.SEERR_URL, seerrUrlPrefill())
|
|
assertEquals(WolfskinDefaults.SEERR_URL, seerrUrlPrefill(" "))
|
|
}
|
|
|
|
@Test
|
|
fun enteredUrlIsKept() {
|
|
assertEquals("https://seerr.example.org", seerrUrlPrefill("https://seerr.example.org"))
|
|
}
|
|
}
|