From 6e904341c9a4a07ea0232850a2dcd4ddc7dfa00a Mon Sep 17 00:00:00 2001 From: GeoSot Date: Thu, 10 Mar 2022 02:12:19 +0200 Subject: Carousel: change class check as it can only exist if carousel is sliding Also, fix the corresponding test --- js/tests/unit/carousel.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/tests/unit') 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 = [ '