mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-07 10:43:39 +02:00
Add real pagination; fixes #28
This commit is contained in:
parent
ec4504e475
commit
7b866b7446
9 changed files with 133 additions and 43 deletions
|
|
@ -10,6 +10,14 @@
|
|||
(is (= :result (sub/response-for responses [:api/response-for "search2" {:query "query term"}])))
|
||||
(is (nil? (sub/response-for responses [:api/response-for "search2" {:query "another query term"}]))))))
|
||||
|
||||
(deftest responses-for-endpoint
|
||||
(testing "Should concatenate all responses for an endpoint"
|
||||
(let [responses {["search2" {:query "query term"}] :result1
|
||||
["something-else" nil] :ignored-result
|
||||
["search2" {:query "another query term"}] :result2}]
|
||||
(is (= (dissoc responses ["something-else" nil])
|
||||
(sub/responses-for-endpoint responses [:api/responses-for-endpoint "search2"]))))))
|
||||
|
||||
(deftest endpoint-keywordification
|
||||
(testing "Should strip prefixes"
|
||||
(is (= :artist-info (sub/endpoint->kw "getArtistInfo")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue