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:
parent
875ed0b975
commit
0871d69ec9
7 changed files with 214 additions and 7 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue