mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-08 06:36:33 +02:00
Modal: refactor listeners to reduce some code noise (#35902)
This commit is contained in:
@@ -438,10 +438,10 @@ describe('Modal', () => {
|
||||
const modalEl = fixtureEl.querySelector('.modal')
|
||||
const modal = new Modal(modalEl)
|
||||
|
||||
spyOn(modal, '_adjustDialog').and.callThrough()
|
||||
const spy = spyOn(modal, '_adjustDialog').and.callThrough()
|
||||
|
||||
const expectDone = () => {
|
||||
expect(modal._adjustDialog).toHaveBeenCalled()
|
||||
expect(spy).toHaveBeenCalled()
|
||||
|
||||
resolve()
|
||||
}
|
||||
|
Reference in New Issue
Block a user