aboutsummaryrefslogtreecommitdiff
path: root/app/src/test/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-03-04 16:24:36 -0500
committerAllan Wang <me@allanwang.ca>2019-03-04 16:24:36 -0500
commitca6ecf83b15e96e65791e21749e3263296aef057 (patch)
treeeb012e19ae07f5ec1966ffdee463051201f3452d /app/src/test/kotlin
parentf77c652e612241e046d16690ca239cce44a00b07 (diff)
downloadfrost-ca6ecf83b15e96e65791e21749e3263296aef057.tar.gz
frost-ca6ecf83b15e96e65791e21749e3263296aef057.tar.bz2
frost-ca6ecf83b15e96e65791e21749e3263296aef057.zip
Add fbclid trimmer, resolves #1290
Diffstat (limited to 'app/src/test/kotlin')
-rw-r--r--app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt13
1 files changed, 13 insertions, 0 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 3bd59fd3..e2a6f4ae 100644
--- a/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt
+++ b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt
@@ -71,6 +71,19 @@ class FbUrlTest {
}
@Test
+ fun valuelessQuery() {
+ val url = "$FB_URL_BASE?foo"
+ assertFbFormat(url, url)
+ }
+
+ @Test
+ fun fbclid() {
+ val url = "$FB_URL_BASE?foo&fbclid=abc&bar=bbb"
+ val formattedUrl = "$FB_URL_BASE?foo&bar=bbb"
+ assertFbFormat(formattedUrl, url)
+ }
+
+ @Test
fun doubleDash() {
assertFbFormat("${FB_URL_BASE}relative", "$FB_URL_BASE/relative")
}