2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03: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
+2 -2
View File
@@ -18,7 +18,7 @@ describe('Backdrop', () => {
const list = document.querySelectorAll(CLASS_BACKDROP)
list.forEach(el => {
document.body.removeChild(el)
el.remove()
})
})
@@ -141,7 +141,7 @@ describe('Backdrop', () => {
const getElements = () => document.querySelectorAll(CLASS_BACKDROP)
instance.show(() => {
wrapper.parentNode.removeChild(wrapper)
wrapper.remove()
instance.hide(() => {
expect(getElements().length).toEqual(0)
done()