1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-14 17:44:15 +02:00

v4 improve coverage (#25945)

* Improve code coverage for our Button plugin

* improve coverage for our Alert plugin

* test tooltip update method

* test update and dispose for dropdown

* increase code coverage requirements
This commit is contained in:
Johann-S
2018-04-10 09:28:29 +02:00
committed by GitHub
parent 875ed0b975
commit 0871d69ec9
7 changed files with 214 additions and 7 deletions

View File

@@ -58,9 +58,11 @@ const Alert = (($) => {
// Public
close(element) {
element = element || this._element
let rootElement = this._element
if (element) {
rootElement = this._getRootElement(element)
}
const rootElement = this._getRootElement(element)
const customEvent = this._triggerCloseEvent(rootElement)
if (customEvent.isDefaultPrevented()) {