diff options
| author | GeoSot <[email protected]> | 2021-09-29 02:34:34 +0300 |
|---|---|---|
| committer | GeoSot <[email protected]> | 2021-09-29 13:08:18 +0300 |
| commit | beed99e50ffa16e6ad3d2b1296de539a3b0ea85a (patch) | |
| tree | 486871bb176f4d10b8feb1265be734b76c83e970 /js/tests/unit/tooltip.spec.js | |
| parent | 4ffdef397f6b28729e1338625c73218765dcdbb9 (diff) | |
| download | bootstrap-gs/parse-json-config.tar.xz bootstrap-gs/parse-json-config.zip | |
Manipulator: Add json parse supportgs/parse-json-config
Diffstat (limited to 'js/tests/unit/tooltip.spec.js')
| -rw-r--r-- | js/tests/unit/tooltip.spec.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/js/tests/unit/tooltip.spec.js b/js/tests/unit/tooltip.spec.js index 22a7edd01..c4f34e01c 100644 --- a/js/tests/unit/tooltip.spec.js +++ b/js/tests/unit/tooltip.spec.js @@ -680,15 +680,12 @@ describe('Tooltip', () => { }) it('should not hide tooltip if leave event occurs and enter event occurs within the hide delay', done => { - fixtureEl.innerHTML = '<a href="#" rel="tooltip" title="Another tooltip">' + fixtureEl.innerHTML = '<a href="#" rel="tooltip" title="Another tooltip" data-bs-delay=\'{"show":0,"hide":150}\'>' const tooltipEl = fixtureEl.querySelector('a') - const tooltip = new Tooltip(tooltipEl, { - delay: { - show: 0, - hide: 150 - } - }) + const tooltip = new Tooltip(tooltipEl) + + expect(tooltip._config.delay).toEqual({ show: 0, hide: 150 }) setTimeout(() => { expect(tooltip.getTipElement().classList.contains('show')).toEqual(true) |
