diff options
author | Rohit Sharma <rohit2sharma95@gmail.com> | 2021-04-07 22:58:05 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2021-04-11 09:42:52 +0300 |
commit | bac0b0c899b8e7fbdbc1ec7fa1ac1c5b847b3c90 (patch) | |
tree | 6b78180963e232d52ec187579ddd9e9c55a118d7 /js/tests/unit/tooltip.spec.js | |
parent | 5f946d3a86caa8c62a3a2bb279b4640f28c6930a (diff) |
Update tests to check for `noop` to be removed
Diffstat (limited to 'js/tests/unit/tooltip.spec.js')
-rw-r--r-- | js/tests/unit/tooltip.spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/tooltip.spec.js b/js/tests/unit/tooltip.spec.js index f9d97e3f7e..399f1f22a8 100644 --- a/js/tests/unit/tooltip.spec.js +++ b/js/tests/unit/tooltip.spec.js @@ -450,7 +450,7 @@ describe('Tooltip', () => { tooltipEl.addEventListener('shown.bs.tooltip', () => { expect(document.querySelector('.tooltip')).not.toBeNull() - expect(EventHandler.on).toHaveBeenCalled() + expect(EventHandler.on).toHaveBeenCalledWith(jasmine.any(Object), 'mouseover', noop) document.documentElement.ontouchstart = undefined done() }) @@ -889,7 +889,7 @@ describe('Tooltip', () => { tooltipEl.addEventListener('hidden.bs.tooltip', () => { expect(document.querySelector('.tooltip')).toBeNull() - expect(EventHandler.off).toHaveBeenCalled() + expect(EventHandler.off).toHaveBeenCalledWith(jasmine.any(Object), 'mouseover', noop) document.documentElement.ontouchstart = undefined done() }) |