wolfskin/app/src/test/java/com/github/damontecres/wholphin/WolfskinDefaultsTest.kt
justinzeus af885eae58
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
Default Seerr login to Jellyfin and prefill Wolfskin Seerr URL
2026-10-22 14:46:41 +02:00

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"))
}
}