👷 Let’s add a spec!
This commit is contained in:
parent
1454783450
commit
07dea13c77
1 changed files with 16 additions and 9 deletions
|
@ -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([
|
||||
|
|
Loading…
Reference in a new issue