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
12
test/cljs/airsonic_ui/components/library/subs_test.cljs
Normal file
12
test/cljs/airsonic_ui/components/library/subs_test.cljs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(ns airsonic-ui.components.library.subs-test
|
||||
(:require [cljs.test :refer-macros [deftest testing is]]
|
||||
[airsonic-ui.components.library.subs :as sub]))
|
||||
|
||||
(def responses {["getAlbumList2" {:type "recent" :offset 1}] {:album '(5 6 7 8)}
|
||||
["getAlbumList2" {:type "recent" :offset 0}] {:album '(1 2 3 4)}
|
||||
["getAlbumList2" {:type "newest" :offset 1}] {:album '(9 8 7 6)}})
|
||||
|
||||
(deftest complete-library
|
||||
(testing "Should concatenate all album list responses for a given type of list"
|
||||
(is (= '(1 2 3 4 5 6 7 8)
|
||||
(sub/complete-library responses [:library/complete "recent"])))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue