Add assert for role with app name in label
This commit is contained in:
parent
ece319a687
commit
b7afe44a5c
1 changed files with 4 additions and 0 deletions
|
@ -417,6 +417,10 @@ describe('menu module', function () {
|
|||
var item = new MenuItem({role: 'help'})
|
||||
assert.equal(item.label, 'Help')
|
||||
assert.equal(item.accelerator, undefined)
|
||||
|
||||
var item = new MenuItem({role: 'about'})
|
||||
assert.equal(item.label, 'About Electron Test')
|
||||
assert.equal(item.accelerator, undefined)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue