👷 Add a spec

This commit is contained in:
Felix Rieseberg 2017-12-08 14:52:21 -08:00
parent 99031834ff
commit 5a658fa5f6

View file

@ -283,9 +283,19 @@ describe('Menu module', () => {
}) })
it('returns immediately', () => { it('returns immediately', () => {
menu.popup(w, {x: 100, y: 100, async: true}) menu.popup(w, {x: 100, y: 100})
menu.closePopup(w) menu.closePopup(w)
}) })
it('works without a given BrowserWindow and options', () => {
menu.popup({x: 100, y: 100})
menu.closePopup()
})
it('works without a given BrowserWindow', () => {
menu.popup(100, 100)
menu.closePopup()
})
}) })
describe('Menu.setApplicationMenu', () => { describe('Menu.setApplicationMenu', () => {