mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Fix bug where menu item dropped from root container (#68)
This commit is contained in:
@@ -652,8 +652,6 @@ function bindSmapiSoapServiceToExpress(
|
|||||||
itemType: "albumList",
|
itemType: "albumList",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
index: 0,
|
|
||||||
total: 9,
|
|
||||||
});
|
});
|
||||||
case "search":
|
case "search":
|
||||||
return getMetadataResult({
|
return getMetadataResult({
|
||||||
@@ -674,8 +672,6 @@ function bindSmapiSoapServiceToExpress(
|
|||||||
title: lang("tracks"),
|
title: lang("tracks"),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
index: 0,
|
|
||||||
total: 3,
|
|
||||||
});
|
});
|
||||||
case "artists":
|
case "artists":
|
||||||
return musicLibrary.artists(paging).then((result) => {
|
return musicLibrary.artists(paging).then((result) => {
|
||||||
|
|||||||
@@ -950,9 +950,7 @@ describe("api", () => {
|
|||||||
index: 0,
|
index: 0,
|
||||||
count: 100,
|
count: 100,
|
||||||
});
|
});
|
||||||
expect(root[0]).toEqual(
|
const mediaCollection = [
|
||||||
getMetadataResult({
|
|
||||||
mediaCollection: [
|
|
||||||
{
|
{
|
||||||
id: "artists",
|
id: "artists",
|
||||||
title: "Artists",
|
title: "Artists",
|
||||||
@@ -1027,9 +1025,12 @@ describe("api", () => {
|
|||||||
).href(),
|
).href(),
|
||||||
itemType: "albumList",
|
itemType: "albumList",
|
||||||
},
|
},
|
||||||
],
|
];
|
||||||
|
expect(root[0]).toEqual(
|
||||||
|
getMetadataResult({
|
||||||
|
mediaCollection,
|
||||||
index: 0,
|
index: 0,
|
||||||
total: 9,
|
total: mediaCollection.length,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@@ -1043,9 +1044,7 @@ describe("api", () => {
|
|||||||
index: 0,
|
index: 0,
|
||||||
count: 100,
|
count: 100,
|
||||||
});
|
});
|
||||||
expect(root[0]).toEqual(
|
const mediaCollection = [
|
||||||
getMetadataResult({
|
|
||||||
mediaCollection: [
|
|
||||||
{
|
{
|
||||||
id: "artists",
|
id: "artists",
|
||||||
title: "Artiesten",
|
title: "Artiesten",
|
||||||
@@ -1120,9 +1119,12 @@ describe("api", () => {
|
|||||||
).href(),
|
).href(),
|
||||||
itemType: "albumList",
|
itemType: "albumList",
|
||||||
},
|
},
|
||||||
],
|
];
|
||||||
|
expect(root[0]).toEqual(
|
||||||
|
getMetadataResult({
|
||||||
|
mediaCollection,
|
||||||
index: 0,
|
index: 0,
|
||||||
total: 9,
|
total: mediaCollection.length,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user