add spec for menu.popup(window, callback)

This commit is contained in:
Shelley Vohr 2018-02-19 13:15:49 -05:00
parent cd9e7142e4
commit 9c52d273dd
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -383,6 +383,11 @@ describe('Menu module', () => {
assert.equal(y, 101)
})
it('works with a given BrowserWindow, no options, and a callback', (done) => {
menu.popup(w, () => done())
menu.closePopup()
})
it('calls the callback', (done) => {
menu.popup({}, () => done())
menu.closePopup()