diff options
| author | XhmikosR <[email protected]> | 2021-08-26 19:23:46 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2021-09-28 19:19:29 +0300 |
| commit | f2541d132e80a14d00bd4db9cb325e1f400639fc (patch) | |
| tree | 8e49cfea81882f854de7f50bdc196ef4dec72649 /js/tests/unit/carousel.spec.js | |
| parent | 21c2f18e8f949416f08e5a5c85778c412bb4c3d9 (diff) | |
| download | bootstrap-main-xmr-xo.tar.xz bootstrap-main-xmr-xo.zip | |
Fix `import/extensions` issuesmain-xmr-xo
Diffstat (limited to 'js/tests/unit/carousel.spec.js')
| -rw-r--r-- | js/tests/unit/carousel.spec.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/js/tests/unit/carousel.spec.js b/js/tests/unit/carousel.spec.js index 83ba28912..7f6ce2dc0 100644 --- a/js/tests/unit/carousel.spec.js +++ b/js/tests/unit/carousel.spec.js @@ -1,9 +1,7 @@ -import Carousel from '../../src/carousel' -import EventHandler from '../../src/dom/event-handler' - -/** Test helpers */ -import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture' -import * as util from '../../src/util' +import Carousel from '../../src/carousel.js' +import EventHandler from '../../src/dom/event-handler.js' +import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture.js' +import { isRTL } from '../../src/util/index.js' describe('Carousel', () => { const { Simulator, PointerEvent } = window @@ -1175,7 +1173,7 @@ describe('Carousel', () => { const carouselEl = fixtureEl.querySelector('div') const carousel = new Carousel(carouselEl, {}) - expect(util.isRTL()).toEqual(true, 'rtl has to be true') + expect(isRTL()).toEqual(true, 'rtl has to be true') expect(carousel._directionToOrder('left')).toEqual('prev') expect(carousel._directionToOrder('prev')).toEqual('prev') |
