diff options
author | Allan Wang <me@allanwang.ca> | 2019-03-04 16:24:36 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-03-04 16:24:36 -0500 |
commit | ca6ecf83b15e96e65791e21749e3263296aef057 (patch) | |
tree | eb012e19ae07f5ec1966ffdee463051201f3452d /app/src/test/kotlin/com/pitchedapps | |
parent | f77c652e612241e046d16690ca239cce44a00b07 (diff) | |
download | frost-ca6ecf83b15e96e65791e21749e3263296aef057.tar.gz frost-ca6ecf83b15e96e65791e21749e3263296aef057.tar.bz2 frost-ca6ecf83b15e96e65791e21749e3263296aef057.zip |
Add fbclid trimmer, resolves #1290
Diffstat (limited to 'app/src/test/kotlin/com/pitchedapps')
-rw-r--r-- | app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt | 13 |
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") } |