diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-07-30 01:23:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 01:23:00 +0300 |
commit | 6d707f4801750f1454351d6afe93a80ce4516d1a (patch) | |
tree | 168b43e7e45613dc4e6031500538626514ecec89 /js/tests/unit/tab.spec.js | |
parent | 2bf32ad18017f85380eb6daed3a314b88e1e851a (diff) |
Enable a few eslint-config-xo rules (#34620)
* unicorn/prefer-dom-node-append
* unicorn/prefer-dom-node-remove
Diffstat (limited to 'js/tests/unit/tab.spec.js')
-rw-r--r-- | js/tests/unit/tab.spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/tab.spec.js b/js/tests/unit/tab.spec.js index 621012c12e..4bd9c7a733 100644 --- a/js/tests/unit/tab.spec.js +++ b/js/tests/unit/tab.spec.js @@ -333,8 +333,8 @@ describe('Tab', () => { const tabId = linkEl.getAttribute('href') const tabIdEl = fixtureEl.querySelector(tabId) - liEl.parentNode.removeChild(liEl) - tabIdEl.parentNode.removeChild(tabIdEl) + liEl.remove() + tabIdEl.remove() secondNavTab.show() }) |