diff options
author | Allan Wang <me@allanwang.ca> | 2017-12-29 23:37:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-29 23:37:10 -0500 |
commit | 041bafcceadbd5203e95f2692899ac903dd2e883 (patch) | |
tree | 9c7294cd32928a6000b04d7ce7b5a3e52cff65c5 /app/src/test/kotlin/com/pitchedapps/frost/facebook/FbRequestTest.kt | |
parent | 32e6b5be0e662bbac22806bcc87259fd1a2e2ed0 (diff) | |
download | frost-041bafcceadbd5203e95f2692899ac903dd2e883.tar.gz frost-041bafcceadbd5203e95f2692899ac903dd2e883.tar.bz2 frost-041bafcceadbd5203e95f2692899ac903dd2e883.zip |
Feature/image retrieval (#581)v1.7.3
* Refactor
* Attempt new content
* Clean up to make compile friendly
* Update docs
Diffstat (limited to 'app/src/test/kotlin/com/pitchedapps/frost/facebook/FbRequestTest.kt')
-rw-r--r-- | app/src/test/kotlin/com/pitchedapps/frost/facebook/FbRequestTest.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbRequestTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbRequestTest.kt index c3b19727..93f09fc6 100644 --- a/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbRequestTest.kt +++ b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbRequestTest.kt @@ -1,5 +1,8 @@ package com.pitchedapps.frost.facebook +import com.pitchedapps.frost.facebook.requests.getAuth +import com.pitchedapps.frost.facebook.requests.getFullSizedImage +import com.pitchedapps.frost.facebook.requests.markNotificationRead import com.pitchedapps.frost.internal.AUTH import com.pitchedapps.frost.internal.COOKIE import com.pitchedapps.frost.internal.USER_ID @@ -48,4 +51,12 @@ class FbRequestTest { AUTH.markNotificationRead(notifId).call.assertNoError() } + @Test + fun fullSizeImage() { + val fbid = 10155966932992838L // google's current cover photo + val url = AUTH.getFullSizedImage(fbid).invoke() + println(url) + assertTrue(url?.startsWith("https://scontent") == true) + } + }
\ No newline at end of file |