spec: callback for Menu.popup
This commit is contained in:
parent
c3eadd5b63
commit
2ec3b8ce76
1 changed files with 5 additions and 0 deletions
|
@ -323,6 +323,11 @@ describe('Menu module', () => {
|
|||
assert.equal(x, 100)
|
||||
assert.equal(y, 101)
|
||||
})
|
||||
|
||||
it('calls the callback', (done) => {
|
||||
menu.popup({}, () => done())
|
||||
menu.closePopup()
|
||||
})
|
||||
})
|
||||
|
||||
describe('Menu.closePopup()', () => {
|
||||
|
|
Loading…
Reference in a new issue