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:
@@ -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()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user