diff options
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/unit/carousel.spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/tests/unit/carousel.spec.js b/js/tests/unit/carousel.spec.js index 9817b83f1..8875f3f00 100644 --- a/js/tests/unit/carousel.spec.js +++ b/js/tests/unit/carousel.spec.js @@ -868,7 +868,7 @@ describe('Carousel', () => { }) describe('pause', () => { - it('should call cycle if the carousel have carousel-item-next and carousel-item-prev class', () => { + it('should call cycle if the carousel have carousel-item-next or carousel-item-prev class, cause is sliding', () => { fixtureEl.innerHTML = [ '<div id="myCarousel" class="carousel slide">', ' <div class="carousel-inner">', @@ -887,6 +887,7 @@ describe('Carousel', () => { spyOn(carousel, 'cycle') spyOn(carousel, '_clearInterval') + carousel._slide('next') carousel.pause() expect(carousel.cycle).toHaveBeenCalledWith(true) |
