From fdf3f6ce306a83258a604e42d3f914e92bbcd01c Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Wed, 5 Oct 2016 13:44:28 -0700 Subject: [PATCH] remove unneeded new keyword --- spec/api-menu-spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/api-menu-spec.js b/spec/api-menu-spec.js index b12f4f9e6331..7cd023b95dba 100644 --- a/spec/api-menu-spec.js +++ b/spec/api-menu-spec.js @@ -431,7 +431,7 @@ describe('menu module', function () { }) }) -describe('MenuItem with custom properties in constructor', function () { +describe.only('MenuItem with custom properties in constructor', function () { it('preserves the custom properties', function () { var template = [{ label: 'menu 1', @@ -439,7 +439,7 @@ describe('MenuItem with custom properties in constructor', function () { submenu: [] }] - var menu = new Menu.buildFromTemplate(template) + var menu = Menu.buildFromTemplate(template) menu.items[0].submenu.append(new MenuItem({ label: 'item 1', customProp: 'bar'