Skip to content

Commit b566c58

Browse files
authored
chore: more unit testing adjustments (#2877)
1 parent cb367e0 commit b566c58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/modal/modal.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ export default {
354354
watch: {
355355
visible(newVal, oldVal) {
356356
if (newVal === oldVal) {
357+
/* istanbul ignore next */
357358
return
358359
}
359360
this[newVal ? 'show' : 'hide']()
@@ -378,7 +379,7 @@ export default {
378379
this.show()
379380
}
380381
},
381-
beforeDestroy() /* instanbul ignore next */ {
382+
beforeDestroy() /* istanbul ignore next */ {
382383
// Ensure everything is back to normal
383384
if (this._observer) {
384385
this._observer.disconnect()
@@ -456,7 +457,7 @@ export default {
456457
relatedTarget: null,
457458
isOK: trigger || null,
458459
trigger: trigger || null,
459-
cancel() {
460+
cancel() /* istanbul ignore next */ {
460461
// Backwards compatibility
461462
warn('b-modal: evt.cancel() is deprecated. Please use evt.preventDefault().')
462463
this.preventDefault()

0 commit comments

Comments
 (0)