mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
Fix Util.reflow function and add documentation (#34543)
* add documentation to reflow function * refactor to void as it should be Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -543,8 +543,9 @@ describe('Util', () => {
|
||||
fixtureEl.innerHTML = '<div></div>'
|
||||
|
||||
const div = fixtureEl.querySelector('div')
|
||||
|
||||
expect(Util.reflow(div)).toEqual(0)
|
||||
const spy = spyOnProperty(div, 'offsetHeight')
|
||||
Util.reflow(div)
|
||||
expect(spy).toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user