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:
@@ -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()
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user