fix event callback placement in spec

This commit is contained in:
Shelley Vohr 2018-01-27 12:36:51 -05:00
parent e81265bc7f
commit 3679a9c37a
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -261,7 +261,7 @@ describe('Menu module', () => {
})
})
describe('Menu.popup', () => {
describe.only('Menu.popup', () => {
let w = null
let menu
@ -285,14 +285,14 @@ describe('Menu module', () => {
})
it('should emit menu-will-show event', (done) => {
menu.popup(w)
menu.on('menu-will-show', () => { done() })
menu.popup(w)
})
it('should emit menu-will-close event', (done) => {
menu.on('menu-will-close', () => { done() })
menu.popup(w)
menu.closePopup()
menu.on('menu-will-close', () => { done() })
})
it('returns immediately', () => {