diff --git a/js/tests/unit/tab.spec.js b/js/tests/unit/tab.spec.js
index eaa82f1cd..a644360fe 100644
--- a/js/tests/unit/tab.spec.js
+++ b/js/tests/unit/tab.spec.js
@@ -301,55 +301,6 @@ describe('Tab', () => {
firstTab.show()
})
-
- it('should handle removed tabs', done => {
- fixtureEl.innerHTML = [
- '
',
- ' - ',
- ' ',
- '
',
- ' - ',
- ' ',
- ' ',
- ' ',
- '
',
- ' - ',
- ' ',
- ' ',
- ' ',
- '
',
- '
',
- '',
- '
test 1
',
- '
test 2
',
- '
test 3
',
- '
'
- ].join('')
-
- const secondNavEl = fixtureEl.querySelector('#secondNav')
- const btnCloseEl = fixtureEl.querySelector('#btnClose')
- const secondNavTab = new Tab(secondNavEl)
-
- secondNavEl.addEventListener('shown.bs.tab', () => {
- expect(fixtureEl.querySelectorAll('.nav-tab').length).toEqual(2)
- done()
- })
-
- btnCloseEl.addEventListener('click', () => {
- const tabEl = btnCloseEl.parentNode
- const liEl = tabEl.parentNode
- const tabId = tabEl.getAttribute('data-bs-target')
- const tabIdEl = fixtureEl.querySelector(tabId)
-
- liEl.parentNode.removeChild(liEl)
- tabIdEl.parentNode.removeChild(tabIdEl)
- secondNavTab.show()
- })
-
- btnCloseEl.click()
- })
})
describe('dispose', () => {