Add x-total-count to Subsonic API getAlbumList (#1360)
* Add x-total-count to Subsonic API getAlbumList * Rename variable Co-authored-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -36,6 +36,7 @@ var _ = Describe("AlbumListController", func() {
|
||||
Expect(err).To(BeNil())
|
||||
Expect(resp.AlbumList.Album[0].Id).To(Equal("1"))
|
||||
Expect(resp.AlbumList.Album[1].Id).To(Equal("2"))
|
||||
Expect(w.Header().Get("x-total-count")).To(Equal("2"))
|
||||
Expect(mockRepo.Options.Offset).To(Equal(10))
|
||||
Expect(mockRepo.Options.Max).To(Equal(20))
|
||||
})
|
||||
@@ -68,6 +69,7 @@ var _ = Describe("AlbumListController", func() {
|
||||
Expect(err).To(BeNil())
|
||||
Expect(resp.AlbumList2.Album[0].Id).To(Equal("1"))
|
||||
Expect(resp.AlbumList2.Album[1].Id).To(Equal("2"))
|
||||
Expect(w.Header().Get("x-total-count")).To(Equal("2"))
|
||||
Expect(mockRepo.Options.Offset).To(Equal(10))
|
||||
Expect(mockRepo.Options.Max).To(Equal(20))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user