From 0338b61eb634e7fa3369c84fd931b7c33b731562 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Mon, 7 May 2018 15:56:24 +0200 Subject: chore(deps): update qunit and karma-qunit --- js/tests/unit/alert.js | 1 + js/tests/unit/button.js | 1 + js/tests/unit/carousel.js | 1 + js/tests/unit/collapse.js | 1 + js/tests/unit/dropdown.js | 1 + js/tests/unit/modal.js | 1 + js/tests/unit/popover.js | 1 + js/tests/unit/scrollspy.js | 1 + js/tests/unit/tab.js | 1 + js/tests/unit/tooltip.js | 1 + js/tests/unit/util.js | 6 +++++- 11 files changed, 15 insertions(+), 1 deletion(-) (limited to 'js/tests/unit') diff --git a/js/tests/unit/alert.js b/js/tests/unit/alert.js index fc7727fb1c..65a8f9e767 100644 --- a/js/tests/unit/alert.js +++ b/js/tests/unit/alert.js @@ -16,6 +16,7 @@ $(function () { afterEach: function () { $.fn.alert = $.fn.bootstrapAlert delete $.fn.bootstrapAlert + $('#qunit-fixture').html('') } }) diff --git a/js/tests/unit/button.js b/js/tests/unit/button.js index 1fdcce95fd..9576dd256f 100644 --- a/js/tests/unit/button.js +++ b/js/tests/unit/button.js @@ -16,6 +16,7 @@ $(function () { afterEach: function () { $.fn.button = $.fn.bootstrapButton delete $.fn.bootstrapButton + $('#qunit-fixture').html('') } }) diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js index 12bb89e4f4..baabcf426f 100644 --- a/js/tests/unit/carousel.js +++ b/js/tests/unit/carousel.js @@ -16,6 +16,7 @@ $(function () { afterEach: function () { $.fn.carousel = $.fn.bootstrapCarousel delete $.fn.bootstrapCarousel + $('#qunit-fixture').html('') } }) diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js index 4a99f16325..7f4cedd748 100644 --- a/js/tests/unit/collapse.js +++ b/js/tests/unit/collapse.js @@ -16,6 +16,7 @@ $(function () { afterEach: function () { $.fn.collapse = $.fn.bootstrapCollapse delete $.fn.bootstrapCollapse + $('#qunit-fixture').html('') } }) diff --git a/js/tests/unit/dropdown.js b/js/tests/unit/dropdown.js index f87c65bea0..f767124d59 100644 --- a/js/tests/unit/dropdown.js +++ b/js/tests/unit/dropdown.js @@ -16,6 +16,7 @@ $(function () { afterEach: function () { $.fn.dropdown = $.fn.bootstrapDropdown delete $.fn.bootstrapDropdown + $('#qunit-fixture').html('') } }) diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index c8b321a7c2..3932d66c7a 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -33,6 +33,7 @@ $(function () { $(document.body).removeClass('modal-open') $.fn.modal = $.fn.bootstrapModal delete $.fn.bootstrapModal + $('#qunit-fixture').html('') } }) diff --git a/js/tests/unit/popover.js b/js/tests/unit/popover.js index 3eef811d60..f4b04ded57 100644 --- a/js/tests/unit/popover.js +++ b/js/tests/unit/popover.js @@ -17,6 +17,7 @@ $(function () { $.fn.popover = $.fn.bootstrapPopover delete $.fn.bootstrapPopover $('.popover').remove() + $('#qunit-fixture').html('') } }) diff --git a/js/tests/unit/scrollspy.js b/js/tests/unit/scrollspy.js index 095e744b76..1337e585d4 100644 --- a/js/tests/unit/scrollspy.js +++ b/js/tests/unit/scrollspy.js @@ -16,6 +16,7 @@ $(function () { afterEach: function () { $.fn.scrollspy = $.fn.bootstrapScrollspy delete $.fn.bootstrapScrollspy + $('#qunit-fixture').html('') } }) diff --git a/js/tests/unit/tab.js b/js/tests/unit/tab.js index 5fb8d8d078..c70e0d1c96 100644 --- a/js/tests/unit/tab.js +++ b/js/tests/unit/tab.js @@ -16,6 +16,7 @@ $(function () { afterEach: function () { $.fn.tab = $.fn.bootstrapTab delete $.fn.bootstrapTab + $('#qunit-fixture').html('') } }) diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index a2a2395309..e9e6ae3242 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -17,6 +17,7 @@ $(function () { $.fn.tooltip = $.fn.bootstrapTooltip delete $.fn.bootstrapTooltip $('.tooltip').remove() + $('#qunit-fixture').html('') } }) diff --git a/js/tests/unit/util.js b/js/tests/unit/util.js index f4303ea15b..37327b8681 100644 --- a/js/tests/unit/util.js +++ b/js/tests/unit/util.js @@ -3,7 +3,11 @@ $(function () { window.Util = typeof bootstrap !== 'undefined' ? bootstrap.Util : Util - QUnit.module('util') + QUnit.module('util', { + afterEach: function () { + $('#qunit-fixture').html('') + } + }) QUnit.test('Util.getSelectorFromElement should return the correct element', function (assert) { assert.expect(2) -- cgit v1.2.3