1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 17:14:04 +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:
XhmikosR
2021-07-30 01:23:00 +03:00
committed by GitHub
parent 2bf32ad180
commit 6d707f4801
14 changed files with 25 additions and 28 deletions

View File

@@ -368,10 +368,10 @@ describe('EventHandler', () => {
it('should remove the correct delegated event listener', () => {
const element = document.createElement('div')
const subelement = document.createElement('span')
element.appendChild(subelement)
element.append(subelement)
const anchor = document.createElement('a')
element.appendChild(anchor)
element.append(anchor)
let i = 0
const handler = () => {
@@ -381,7 +381,7 @@ describe('EventHandler', () => {
EventHandler.on(element, 'click', 'a', handler)
EventHandler.on(element, 'click', 'span', handler)
fixtureEl.appendChild(element)
fixtureEl.append(element)
EventHandler.trigger(anchor, 'click')
EventHandler.trigger(subelement, 'click')