diff options
| author | GeoSot <[email protected]> | 2021-07-20 17:20:43 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-20 17:20:43 +0300 |
| commit | 5541179b387ed8a1b5e457aeb47a35e6e7c62d4a (patch) | |
| tree | 21cedc64f3ff71b06b029aea72dc46f7eedb9789 /js/tests | |
| parent | 365b9e5af0fac2a3d92e3ad17dbeb8d31a08baf5 (diff) | |
| download | bootstrap-5541179b387ed8a1b5e457aeb47a35e6e7c62d4a.tar.xz bootstrap-5541179b387ed8a1b5e457aeb47a35e6e7c62d4a.zip | |
Fix `Util.reflow` function and add documentation (#34543)
* add documentation to reflow function
* refactor to void as it should be
Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/unit/util/index.spec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/tests/unit/util/index.spec.js b/js/tests/unit/util/index.spec.js index 9b5d7b70e..38e94dc6b 100644 --- a/js/tests/unit/util/index.spec.js +++ b/js/tests/unit/util/index.spec.js @@ -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() }) }) |
