diff options
author | Allan Wang <me@allanwang.ca> | 2019-03-30 23:07:43 -0400 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-03-30 23:07:43 -0400 |
commit | 0b4142715cc84ab5a63cdc766379ef8506c3bc49 (patch) | |
tree | a0d3b9659d2fb20f58e722251d2935f79c6a758b /app/src | |
parent | 5b470546fd478a322b121ec60a1f4c05d4d61ff6 (diff) | |
download | frost-0b4142715cc84ab5a63cdc766379ef8506c3bc49.tar.gz frost-0b4142715cc84ab5a63cdc766379ef8506c3bc49.tar.bz2 frost-0b4142715cc84ab5a63cdc766379ef8506c3bc49.zip |
Update changelog and add fbclid test
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/res/xml/frost_changelog.xml | 2 | ||||
-rw-r--r-- | app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/res/xml/frost_changelog.xml b/app/src/main/res/xml/frost_changelog.xml index 51a872ec..b535b43c 100644 --- a/app/src/main/res/xml/frost_changelog.xml +++ b/app/src/main/res/xml/frost_changelog.xml @@ -9,7 +9,7 @@ <version title="v2.2.3" /> <item text="Add ability to hide stories" /> <item text="Remove fbclid from urls" /> - <item text="" /> + <item text="Apply notification keyword filter to title as well" /> <item text="" /> <item text="" /> 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 e2a6f4ae..ca842ed9 100644 --- a/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt +++ b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt @@ -84,6 +84,13 @@ class FbUrlTest { } @Test + fun fbclidNonFacebook() { + val url = "https://www.google.ca?foo&fbclid=abc&bar=bbb" + val formattedUrl = "https://www.google.ca?foo&bar=bbb" + assertFbFormat(formattedUrl, url) + } + + @Test fun doubleDash() { assertFbFormat("${FB_URL_BASE}relative", "$FB_URL_BASE/relative") } |