2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +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
@@ -19,7 +19,7 @@ describe('Modal', () => {
document.querySelectorAll('.modal-backdrop')
.forEach(backdrop => {
document.body.removeChild(backdrop)
backdrop.remove()
})
})
@@ -143,7 +143,7 @@ describe('Modal', () => {
modalEl.addEventListener('shown.bs.modal', () => {
const dynamicModal = document.getElementById(id)
expect(dynamicModal).not.toBeNull()
dynamicModal.parentNode.removeChild(dynamicModal)
dynamicModal.remove()
done()
})