1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-15 18:14:17 +02:00

ref(tab): remove show from panels dependent-less they have .fade class or not (simplify checks) (#36622)

This commit is contained in:
GeoSot
2022-06-27 12:43:11 +03:00
committed by GitHub
parent 8de0488330
commit f14c58f494
2 changed files with 6 additions and 14 deletions

View File

@@ -904,7 +904,7 @@ describe('Tab', () => {
})
})
it('should not add `show` class to tab panes if there is no `.fade` class', () => {
it('should add `show` class to tab panes if there is no `.fade` class', () => {
return new Promise(resolve => {
fixtureEl.innerHTML = [
'<ul class="nav nav-tabs" role="tablist">',
@@ -924,7 +924,7 @@ describe('Tab', () => {
const secondNavEl = fixtureEl.querySelector('#secondNav')
secondNavEl.addEventListener('shown.bs.tab', () => {
expect(fixtureEl.querySelectorAll('.show')).toHaveSize(0)
expect(fixtureEl.querySelectorAll('.tab-content .show')).toHaveSize(1)
resolve()
})