mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-23 05:33:02 +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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user