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",
|
||||
},
|
||||
],
|
||||
index: 0,
|
||||
total: 9,
|
||||
});
|
||||
case "search":
|
||||
return getMetadataResult({
|
||||
@@ -674,8 +672,6 @@ function bindSmapiSoapServiceToExpress(
|
||||
title: lang("tracks"),
|
||||
},
|
||||
],
|
||||
index: 0,
|
||||
total: 3,
|
||||
});
|
||||
case "artists":
|
||||
return musicLibrary.artists(paging).then((result) => {
|
||||
|
||||
@@ -950,9 +950,7 @@ describe("api", () => {
|
||||
index: 0,
|
||||
count: 100,
|
||||
});
|
||||
expect(root[0]).toEqual(
|
||||
getMetadataResult({
|
||||
mediaCollection: [
|
||||
const mediaCollection = [
|
||||
{
|
||||
id: "artists",
|
||||
title: "Artists",
|
||||
@@ -1027,9 +1025,12 @@ describe("api", () => {
|
||||
).href(),
|
||||
itemType: "albumList",
|
||||
},
|
||||
],
|
||||
];
|
||||
expect(root[0]).toEqual(
|
||||
getMetadataResult({
|
||||
mediaCollection,
|
||||
index: 0,
|
||||
total: 9,
|
||||
total: mediaCollection.length,
|
||||
})
|
||||
);
|
||||
});
|
||||
@@ -1043,9 +1044,7 @@ describe("api", () => {
|
||||
index: 0,
|
||||
count: 100,
|
||||
});
|
||||
expect(root[0]).toEqual(
|
||||
getMetadataResult({
|
||||
mediaCollection: [
|
||||
const mediaCollection = [
|
||||
{
|
||||
id: "artists",
|
||||
title: "Artiesten",
|
||||
@@ -1120,9 +1119,12 @@ describe("api", () => {
|
||||
).href(),
|
||||
itemType: "albumList",
|
||||
},
|
||||
],
|
||||
];
|
||||
expect(root[0]).toEqual(
|
||||
getMetadataResult({
|
||||
mediaCollection,
|
||||
index: 0,
|
||||
total: 9,
|
||||
total: mediaCollection.length,
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user