remove unneeded new keyword

This commit is contained in:
Zeke Sikelianos 2016-10-05 13:44:28 -07:00
parent 16b3962b66
commit fdf3f6ce30

View file

@ -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'