mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-19 03:41:19 +02:00
Add tests for DATA_KEY
(#33090)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -19,6 +19,12 @@ describe('Alert', () => {
|
||||
expect(typeof Alert.VERSION).toEqual('string')
|
||||
})
|
||||
|
||||
describe('DATA_KEY', () => {
|
||||
it('should return plugin data key', () => {
|
||||
expect(Alert.DATA_KEY).toEqual('bs.alert')
|
||||
})
|
||||
})
|
||||
|
||||
describe('data-api', () => {
|
||||
it('should close an alert without instantiating it manually', () => {
|
||||
fixtureEl.innerHTML = [
|
||||
|
Reference in New Issue
Block a user