2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

use qunit css for our fixture

This commit is contained in:
Johann-S
2019-07-22 14:46:03 +02:00
parent b7b56cb10a
commit e1b5d8471a
6 changed files with 23 additions and 47 deletions
+6 -2
View File
@@ -691,9 +691,13 @@ describe('Carousel', () => {
describe('nextWhenVisible', () => {
it('should not call next when the page is not visible', () => {
fixtureEl.innerHTML = '<div class="carousel" data-interval="false"></div>'
fixtureEl.innerHTML = [
'<div style="display: none;">',
' <div class="carousel" data-interval="false"></div>',
'</div>'
].join('')
const carouselEl = fixtureEl.querySelector('div')
const carouselEl = fixtureEl.querySelector('.carousel')
const carousel = new Carousel(carouselEl)
spyOn(carousel, 'next')