From 8c84aa1eba4756ca63a00283dba4c11a5d6afb17 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Wed, 20 Mar 2019 01:02:42 -0300 Subject: [PATCH] chore: more unit testing adjustments --- src/components/modal/modal.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/modal/modal.js b/src/components/modal/modal.js index 6c135bac858..d612314bf0f 100644 --- a/src/components/modal/modal.js +++ b/src/components/modal/modal.js @@ -354,6 +354,7 @@ export default { watch: { visible(newVal, oldVal) { if (newVal === oldVal) { + /* istanbul ignore next */ return } this[newVal ? 'show' : 'hide']() @@ -378,7 +379,7 @@ export default { this.show() } }, - beforeDestroy() /* instanbul ignore next */ { + beforeDestroy() /* istanbul ignore next */ { // Ensure everything is back to normal if (this._observer) { this._observer.disconnect() @@ -456,7 +457,7 @@ export default { relatedTarget: null, isOK: trigger || null, trigger: trigger || null, - cancel() { + cancel() /* istanbul ignore next */ { // Backwards compatibility warn('b-modal: evt.cancel() is deprecated. Please use evt.preventDefault().') this.preventDefault()