diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-02-16 09:58:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 09:58:08 +0300 |
commit | 3602828a9001298fcfb6638041fc300f9e677bcb (patch) | |
tree | bba32ebd7deb762c15ec36d15e4257d397874516 /js/tests/unit/carousel.spec.js | |
parent | 4d19e0e8a49e887f007a1e5a147d900d15f61a9c (diff) |
Add tests for `DATA_KEY` (#33090)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'js/tests/unit/carousel.spec.js')
-rw-r--r-- | js/tests/unit/carousel.spec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tests/unit/carousel.spec.js b/js/tests/unit/carousel.spec.js index 2f47f2e00d..533e1ba7e2 100644 --- a/js/tests/unit/carousel.spec.js +++ b/js/tests/unit/carousel.spec.js @@ -45,6 +45,12 @@ describe('Carousel', () => { }) }) + describe('DATA_KEY', () => { + it('should return plugin data key', () => { + expect(Carousel.DATA_KEY).toEqual('bs.carousel') + }) + }) + describe('constructor', () => { it('should go to next item if right arrow key is pressed', done => { fixtureEl.innerHTML = [ |