1
0
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:
GeoSot
2022-03-01 17:08:12 +02:00
committed by GitHub
parent c644f09d88
commit 63f30ac8ee
2 changed files with 10 additions and 23 deletions

View File

@@ -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()
}