aboutsummaryrefslogtreecommitdiff
path: root/app/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/test')
-rw-r--r--app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt15
1 files changed, 3 insertions, 12 deletions
diff --git a/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt
index 3a87a697..57589b5e 100644
--- a/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt
+++ b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt
@@ -1,6 +1,9 @@
package com.pitchedapps.frost.facebook
+import okhttp3.HttpUrl
+import okio.Utf8
import org.junit.Test
+import java.net.URLDecoder
import kotlin.test.assertEquals
@@ -27,11 +30,6 @@ class FbUrlTest {
}
@Test
- fun redirect() {
- assertFbFormat("${FB_URL_BASE}relative/?asdf=1234&hjkl=7890", "https://touch.facebook.com/l.php?u=${FB_URL_BASE}relative/&asdf=1234&hjkl=7890")
- }
-
- @Test
fun discard() {
val prefix = "$FB_URL_BASE?test=1234"
val suffix = "&apple=notorange"
@@ -43,11 +41,4 @@ class FbUrlTest {
assertFbFormat("${FB_URL_BASE}relative", "$FB_URL_BASE/relative")
}
- @Test
- fun css() {
- val expected = "https://test.com?efg=hi&oh=bye&oe=apple%3Fornot"
- val orig = "https\\3a //test.com?efg=hi&oh=bye&oe=apple\\3F ornot"
- assertFbFormat(expected, orig)
- }
-
} \ No newline at end of file