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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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()) {