Skip to content

Commit 3b2c7b5

Browse files
committed
fix: update tests
1 parent 65e1936 commit 3b2c7b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/tests/unit/tooltip.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,13 @@ describe('Tooltip', () => {
352352
})
353353

354354
tooltipEl.addEventListener('inserted.coreui.tooltip', () => {
355-
expect(tooltip.getTipElement().classList.contains('bs-tooltip-bottom')).toEqual(true)
355+
expect(tooltip.getTipElement().dataset.popperPlacement).toEqual('bottom')
356356
})
357357

358358
tooltipEl.addEventListener('shown.coreui.tooltip', () => {
359359
const tooltipShown = document.querySelector('.tooltip')
360360

361-
expect(tooltipShown.classList.contains('bs-tooltip-bottom')).toEqual(true)
361+
expect(tooltipShown.dataset.popperPlacement).toEqual('bottom')
362362
done()
363363
})
364364

0 commit comments

Comments
 (0)