diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-05-20 16:16:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 16:16:55 +0300 |
commit | 9e4f87ae8f2e32bb31795ece8f9ab3e7b823dd7d (patch) | |
tree | a8ae05c59e1e245dc9fa52ea85863c844879b8a1 /js/tests/unit/tooltip.spec.js | |
parent | de0b797ab2bb80e4576c15f1992dc5755378edcd (diff) |
Allow use of `dispose/hide` methods on Tooltip & Popover from jQueryInterface, when component does not exists. (#33371)
Diffstat (limited to 'js/tests/unit/tooltip.spec.js')
-rw-r--r-- | js/tests/unit/tooltip.spec.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/js/tests/unit/tooltip.spec.js b/js/tests/unit/tooltip.spec.js index 80fb6a8a12..27c7a350bc 100644 --- a/js/tests/unit/tooltip.spec.js +++ b/js/tests/unit/tooltip.spec.js @@ -1351,21 +1351,6 @@ describe('Tooltip', () => { expect(tooltip.show).toHaveBeenCalled() }) - it('should do nothing when we call dispose or hide if there is no tooltip created', () => { - fixtureEl.innerHTML = '<div></div>' - - const div = fixtureEl.querySelector('div') - - spyOn(Tooltip.prototype, 'dispose') - - jQueryMock.fn.tooltip = Tooltip.jQueryInterface - jQueryMock.elements = [div] - - jQueryMock.fn.tooltip.call(jQueryMock, 'dispose') - - expect(Tooltip.prototype.dispose).not.toHaveBeenCalled() - }) - it('should throw error on undefined method', () => { fixtureEl.innerHTML = '<div></div>' |