aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2017-11-10 11:25:47 +0100
committerXhmikosR <[email protected]>2017-11-23 10:41:56 +0200
commite8ba37139fcc1677580a6b3fb2a68eef9066e205 (patch)
tree250cd5b44b1bb0359c26b785b25f0b2f28a0097d /js/tests/unit
parentcdab56d940b3c4c9714005aa3caa8842f3e4e8c3 (diff)
downloadbootstrap-e8ba37139fcc1677580a6b3fb2a68eef9066e205.tar.xz
bootstrap-e8ba37139fcc1677580a6b3fb2a68eef9066e205.zip
Allow us to run our unit test on differents jquery version
Diffstat (limited to 'js/tests/unit')
-rw-r--r--js/tests/unit/modal.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js
index e081a6dc2..73935df1f 100644
--- a/js/tests/unit/modal.js
+++ b/js/tests/unit/modal.js
@@ -29,6 +29,8 @@ $(function () {
$.fn.bootstrapModal = $.fn.modal.noConflict()
},
afterEach: function () {
+ $('.modal-backdrop, #modal-test').remove()
+ $(document.body).removeClass('modal-open')
$.fn.modal = $.fn.bootstrapModal
delete $.fn.bootstrapModal
}