From cfee65630644d13927ccf0b2e6fc419eb58d4757 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Mon, 29 Apr 2019 12:33:56 -0700 Subject: [PATCH] fix tests: empty `menus` shouldn't be an array --- src/extension-support/extension-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension-support/extension-manager.js b/src/extension-support/extension-manager.js index 9114bec57..757ec6826 100644 --- a/src/extension-support/extension-manager.js +++ b/src/extension-support/extension-manager.js @@ -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; }