👷 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,6 +291,7 @@ describe('Menu module', () => {
})
describe('Menu.setApplicationMenu', () => {
it('sets a menu', () => {
const menu = Menu.buildFromTemplate([
{
label: '1'
@ -302,6 +303,12 @@ describe('Menu module', () => {
assert.notEqual(Menu.getApplicationMenu(), null)
})
it('unsets a menu with null', () => {
Menu.setApplicationMenu(null)
assert.equal(Menu.getApplicationMenu(), null)
})
})
describe('MenuItem.click', () => {
it('should be called with the item object passed', function (done) {
const menu = Menu.buildFromTemplate([