mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-13 09:04:14 +02:00
Enable a few eslint-config-xo rules (#34620)
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
This commit is contained in:
@@ -16,7 +16,7 @@ describe('Tooltip', () => {
|
||||
clearFixture()
|
||||
|
||||
document.querySelectorAll('.tooltip').forEach(tooltipEl => {
|
||||
document.body.removeChild(tooltipEl)
|
||||
tooltipEl.remove()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -490,7 +490,7 @@ describe('Tooltip', () => {
|
||||
tooltipEl.removeEventListener('shown.bs.tooltip', firstCallback)
|
||||
let tooltipShown = document.querySelector('.tooltip')
|
||||
|
||||
tooltipShown.parentNode.removeChild(tooltipShown)
|
||||
tooltipShown.remove()
|
||||
|
||||
tooltipEl.addEventListener('shown.bs.tooltip', () => {
|
||||
tooltipShown = document.querySelector('.tooltip')
|
||||
@@ -1129,7 +1129,7 @@ describe('Tooltip', () => {
|
||||
html: true
|
||||
})
|
||||
|
||||
tooltip.getTipElement().appendChild(childContent)
|
||||
tooltip.getTipElement().append(childContent)
|
||||
tooltip.setElementContent(tooltip.getTipElement(), childContent)
|
||||
|
||||
expect().nothing()
|
||||
|
Reference in New Issue
Block a user