fix event callback placement in spec
This commit is contained in:
parent
e81265bc7f
commit
3679a9c37a
1 changed files with 3 additions and 3 deletions
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in a new issue