1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-19 11:51:23 +02:00

Add tests for DATA_KEY (#33090)

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
GeoSot
2021-02-16 08:58:08 +02:00
committed by GitHub
parent 4d19e0e8a4
commit 3602828a90
8 changed files with 48 additions and 0 deletions

View File

@@ -56,6 +56,12 @@ describe('Modal', () => {
})
})
describe('DATA_KEY', () => {
it('should return plugin data key', () => {
expect(Modal.DATA_KEY).toEqual('bs.modal')
})
})
describe('toggle', () => {
it('should toggle a modal', done => {
fixtureEl.innerHTML = '<div class="modal"><div class="modal-dialog"></div></div>'