mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 04:41:36 +02:00
Add tests for DATA_KEY
(#33090)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -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 = [
|
||||
|
Reference in New Issue
Block a user