Skip to content

Commit

Permalink
fixup! add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kacurez committed Aug 22, 2024
1 parent cb11365 commit 913a0c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/keboola/facebook/api/request_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@
(is (nil? (sut/get-next-page-url response true false)))
(is (nil? (sut/get-next-page-url response false false))))

(let [response {:paging {:next "someurl"}} :data []]
(let [response {:paging {:next "someurl"} :data []}]
(is (nil? (sut/get-next-page-url response false true))))

(let [response {:paging {:next "someurl"}} :data [{:some "data"}]]
(let [response {:paging {:next "someurl"} :data [{:some "data"}]}]
(is (= "someurl" (sut/get-next-page-url response false true))))

(let [response {:paging {:previous "https://graph.facebook.com/v16.0/17841401480255572/insights?access_token=XXX&pretty=0&metric=total_interactions&metric_type=total_value&period=day"
Expand Down

0 comments on commit 913a0c6

Please sign in to comment.