fix tests: empty menus shouldn't be an array

This commit is contained in:
Christopher Willis-Ford 2019-04-29 12:33:56 -07:00
parent 3fbed88a95
commit cfee656306

View file

@ -295,7 +295,7 @@ class ExtensionManager {
}
return results;
}, []);
extensionInfo.menus = extensionInfo.menus || [];
extensionInfo.menus = extensionInfo.menus || {};
extensionInfo.menus = this._prepareMenuInfo(serviceName, extensionInfo.menus);
return extensionInfo;
}