diff --git a/spec/api-menu-spec.js b/spec/api-menu-spec.js index 538c640e7121..f57617b87714 100644 --- a/spec/api-menu-spec.js +++ b/spec/api-menu-spec.js @@ -283,9 +283,19 @@ describe('Menu module', () => { }) it('returns immediately', () => { - menu.popup(w, {x: 100, y: 100, async: true}) + menu.popup(w, {x: 100, y: 100}) 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', () => {