diff options
Diffstat (limited to 'js/tests/unit/util/backdrop.spec.js')
| -rw-r--r-- | js/tests/unit/util/backdrop.spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/util/backdrop.spec.js b/js/tests/unit/util/backdrop.spec.js index 59b789071..b885b60b5 100644 --- a/js/tests/unit/util/backdrop.spec.js +++ b/js/tests/unit/util/backdrop.spec.js @@ -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() |
