🔧 Feedback
This commit is contained in:
parent
76df41b5d0
commit
c4ec8b4545
2 changed files with 12 additions and 2 deletions
|
@ -312,6 +312,16 @@ describe('Menu module', () => {
|
|||
menu.closePopup()
|
||||
})
|
||||
|
||||
it('works without a given BrowserWindow and 0 options', () => {
|
||||
const { browserWindow, x, y } = menu.popup(0, 1)
|
||||
|
||||
assert.equal(browserWindow.constructor.name, 'BrowserWindow')
|
||||
assert.equal(x, 0)
|
||||
assert.equal(y, 1)
|
||||
|
||||
menu.closePopup()
|
||||
})
|
||||
|
||||
it('works with a given BrowserWindow and no options', () => {
|
||||
const { browserWindow, x, y } = menu.popup(w, 100, 101)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue