diff options
| author | GeoSot <[email protected]> | 2022-03-10 00:38:17 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2022-03-10 15:22:14 +0200 |
| commit | 88da704eedc5149b70dcec7845453456a6e26761 (patch) | |
| tree | 3ffdce0b721c7b1440611037843cfc3f700190a8 /js/tests | |
| parent | 28f150d7204788114e2b36555f5e07eb8bdfdbab (diff) | |
| download | bootstrap-88da704eedc5149b70dcec7845453456a6e26761.tar.xz bootstrap-88da704eedc5149b70dcec7845453456a6e26761.zip | |
Carousel: omit redundant checks as we are always transforming the right values
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/unit/carousel.spec.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/js/tests/unit/carousel.spec.js b/js/tests/unit/carousel.spec.js index d6320debf..536a60e27 100644 --- a/js/tests/unit/carousel.spec.js +++ b/js/tests/unit/carousel.spec.js @@ -1200,9 +1200,7 @@ describe('Carousel', () => { const carousel = new Carousel(carouselEl, {}) expect(carousel._directionToOrder('left')).toEqual('next') - expect(carousel._directionToOrder('prev')).toEqual('prev') expect(carousel._directionToOrder('right')).toEqual('prev') - expect(carousel._directionToOrder('next')).toEqual('next') expect(carousel._orderToDirection('next')).toEqual('left') expect(carousel._orderToDirection('prev')).toEqual('right') @@ -1217,9 +1215,7 @@ describe('Carousel', () => { expect(isRTL()).toBeTrue() expect(carousel._directionToOrder('left')).toEqual('prev') - expect(carousel._directionToOrder('prev')).toEqual('prev') expect(carousel._directionToOrder('right')).toEqual('next') - expect(carousel._directionToOrder('next')).toEqual('next') expect(carousel._orderToDirection('next')).toEqual('right') expect(carousel._orderToDirection('prev')).toEqual('left') |
