spec: callback for Menu.popup

This commit is contained in:
Cheng Zhao 2018-01-01 16:56:22 +09:00
parent c3eadd5b63
commit 2ec3b8ce76

View file

@ -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()', () => {