1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-14 01:24:19 +02:00

Decouple BackDrop from modal (#32439)

* Create backdrop.js util

* revert breaking changes

remove PromiseTimout usage

revert class name

* one more test | change bundlewatch.config

* add config obj to backdrop helper | tests for rootElement | use transitionend helper

* Minor tweaks — Renaming

Co-authored-by: Rohit Sharma <rohit2sharma95@gmail.com>
This commit is contained in:
GeoSot
2021-04-14 23:28:50 +03:00
committed by GitHub
parent 0122e020d6
commit 80085a12f6
7 changed files with 386 additions and 70 deletions

View File

@@ -568,4 +568,12 @@ describe('Util', () => {
expect(typeof fakejQuery.fn.test.noConflict).toEqual('function')
})
})
describe('execute', () => {
it('should execute if arg is function', () => {
const spy = jasmine.createSpy('spy')
Util.execute(spy)
expect(spy).toHaveBeenCalled()
})
})
})