aboutsummaryrefslogtreecommitdiff
path: root/app/src/test/kotlin/com/pitchedapps/frost/internal
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-04-25 15:43:38 -0700
committerAllan Wang <me@allanwang.ca>2019-04-25 15:43:38 -0700
commitb8ab09e645333a76aee19637bda3c4e76f51f5e1 (patch)
tree65bab97f88766629ed155c55043e9240ba9e8dae /app/src/test/kotlin/com/pitchedapps/frost/internal
parent77d28c77ead6a2477e1e4df1b8e74bd08a3c2efd (diff)
downloadfrost-b8ab09e645333a76aee19637bda3c4e76f51f5e1.tar.gz
frost-b8ab09e645333a76aee19637bda3c4e76f51f5e1.tar.bz2
frost-b8ab09e645333a76aee19637bda3c4e76f51f5e1.zip
Update some tests
Diffstat (limited to 'app/src/test/kotlin/com/pitchedapps/frost/internal')
-rw-r--r--app/src/test/kotlin/com/pitchedapps/frost/internal/Internal.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/test/kotlin/com/pitchedapps/frost/internal/Internal.kt b/app/src/test/kotlin/com/pitchedapps/frost/internal/Internal.kt
index b8d9635a..41473e86 100644
--- a/app/src/test/kotlin/com/pitchedapps/frost/internal/Internal.kt
+++ b/app/src/test/kotlin/com/pitchedapps/frost/internal/Internal.kt
@@ -59,7 +59,7 @@ val AUTH: RequestAuth by lazy {
}
}
-val VALID_COOKIE: Boolean by lazy {
+private val VALID_COOKIE: Boolean by lazy {
val data = testJsoup(FbItem.SETTINGS.url)
data.title() == "Settings"
}
@@ -68,7 +68,8 @@ fun testJsoup(url: String) = frostJsoup(COOKIE, url)
fun authDependent() {
println("Auth Dependent")
- Assume.assumeTrue(COOKIE.isNotEmpty() && VALID_COOKIE)
+ Assume.assumeTrue("Cookie cannot be empty", COOKIE.isNotEmpty())
+ Assume.assumeTrue("Cookie is not valid", VALID_COOKIE)
}
/**