mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Add PageSize of 30 to presentation map to reduce load when requesting artists (#69)
This commit is contained in:
@@ -281,6 +281,7 @@ function server(
|
|||||||
|
|
||||||
res.type("application/xml").send(`<?xml version="1.0" encoding="utf-8" ?>
|
res.type("application/xml").send(`<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<Presentation>
|
<Presentation>
|
||||||
|
<BrowseOptions PageSize="30" />
|
||||||
<PresentationMap type="ArtWorkSizeMap">
|
<PresentationMap type="ArtWorkSizeMap">
|
||||||
<Match>
|
<Match>
|
||||||
<imageSizeMap>
|
<imageSizeMap>
|
||||||
|
|||||||
@@ -158,6 +158,17 @@ describe("service config", () => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
it("should have a PageSize of specified", async () => {
|
||||||
|
const xml = await presentationMapXml();
|
||||||
|
|
||||||
|
const pageSize = xpath.select(
|
||||||
|
`string(/Presentation/BrowseOptions/@PageSize)`,
|
||||||
|
xml
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(pageSize).toEqual('30');
|
||||||
|
});
|
||||||
|
|
||||||
it("should have an ArtWorkSizeMap for all sizes recommended by sonos", async () => {
|
it("should have an ArtWorkSizeMap for all sizes recommended by sonos", async () => {
|
||||||
const xml = await presentationMapXml();
|
const xml = await presentationMapXml();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user