👷 Let’s add a spec!

This commit is contained in:
Felix Rieseberg 2017-11-07 13:29:37 -08:00
parent 1454783450
commit 07dea13c77

View file

@ -291,15 +291,22 @@ describe('Menu module', () => {
})
describe('Menu.setApplicationMenu', () => {
const menu = Menu.buildFromTemplate([
{
label: '1'
}, {
label: '2'
}
])
Menu.setApplicationMenu(menu)
assert.notEqual(Menu.getApplicationMenu(), null)
it('sets a menu', () => {
const menu = Menu.buildFromTemplate([
{
label: '1'
}, {
label: '2'
}
])
Menu.setApplicationMenu(menu)
assert.notEqual(Menu.getApplicationMenu(), null)
})
it('unsets a menu with null', () => {
Menu.setApplicationMenu(null)
assert.equal(Menu.getApplicationMenu(), null)
})
})
describe('MenuItem.click', () => {