mirror of
https://github.com/twbs/bootstrap.git
synced 2024-09-21 10:37:12 +00:00
chore(deps): update qunit and karma-qunit
This commit is contained in:
parent
0873ab71c7
commit
0338b61eb6
@ -22,8 +22,8 @@
|
|||||||
<script src="../../assets/js/vendor/popper.min.js"></script>
|
<script src="../../assets/js/vendor/popper.min.js"></script>
|
||||||
|
|
||||||
<!-- QUnit -->
|
<!-- QUnit -->
|
||||||
<link rel="stylesheet" href="../../node_modules/qunitjs/qunit/qunit.css" media="screen">
|
<link rel="stylesheet" href="../../node_modules/qunit/qunit/qunit.css" media="screen">
|
||||||
<script src="../../node_modules/qunitjs/qunit/qunit.js"></script>
|
<script src="../../node_modules/qunit/qunit/qunit.js"></script>
|
||||||
|
|
||||||
<!-- Sinon -->
|
<!-- Sinon -->
|
||||||
<script src="../../node_modules/sinon/pkg/sinon-no-sourcemaps.js"></script>
|
<script src="../../node_modules/sinon/pkg/sinon-no-sourcemaps.js"></script>
|
||||||
|
@ -66,6 +66,11 @@ module.exports = (config) => {
|
|||||||
lines: 90
|
lines: 90
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
client: {
|
||||||
|
qunit: {
|
||||||
|
showUI: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ $(function () {
|
|||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
$.fn.alert = $.fn.bootstrapAlert
|
$.fn.alert = $.fn.bootstrapAlert
|
||||||
delete $.fn.bootstrapAlert
|
delete $.fn.bootstrapAlert
|
||||||
|
$('#qunit-fixture').html('')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ $(function () {
|
|||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
$.fn.button = $.fn.bootstrapButton
|
$.fn.button = $.fn.bootstrapButton
|
||||||
delete $.fn.bootstrapButton
|
delete $.fn.bootstrapButton
|
||||||
|
$('#qunit-fixture').html('')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ $(function () {
|
|||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
$.fn.carousel = $.fn.bootstrapCarousel
|
$.fn.carousel = $.fn.bootstrapCarousel
|
||||||
delete $.fn.bootstrapCarousel
|
delete $.fn.bootstrapCarousel
|
||||||
|
$('#qunit-fixture').html('')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ $(function () {
|
|||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
$.fn.collapse = $.fn.bootstrapCollapse
|
$.fn.collapse = $.fn.bootstrapCollapse
|
||||||
delete $.fn.bootstrapCollapse
|
delete $.fn.bootstrapCollapse
|
||||||
|
$('#qunit-fixture').html('')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ $(function () {
|
|||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
$.fn.dropdown = $.fn.bootstrapDropdown
|
$.fn.dropdown = $.fn.bootstrapDropdown
|
||||||
delete $.fn.bootstrapDropdown
|
delete $.fn.bootstrapDropdown
|
||||||
|
$('#qunit-fixture').html('')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ $(function () {
|
|||||||
$(document.body).removeClass('modal-open')
|
$(document.body).removeClass('modal-open')
|
||||||
$.fn.modal = $.fn.bootstrapModal
|
$.fn.modal = $.fn.bootstrapModal
|
||||||
delete $.fn.bootstrapModal
|
delete $.fn.bootstrapModal
|
||||||
|
$('#qunit-fixture').html('')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ $(function () {
|
|||||||
$.fn.popover = $.fn.bootstrapPopover
|
$.fn.popover = $.fn.bootstrapPopover
|
||||||
delete $.fn.bootstrapPopover
|
delete $.fn.bootstrapPopover
|
||||||
$('.popover').remove()
|
$('.popover').remove()
|
||||||
|
$('#qunit-fixture').html('')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ $(function () {
|
|||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
$.fn.scrollspy = $.fn.bootstrapScrollspy
|
$.fn.scrollspy = $.fn.bootstrapScrollspy
|
||||||
delete $.fn.bootstrapScrollspy
|
delete $.fn.bootstrapScrollspy
|
||||||
|
$('#qunit-fixture').html('')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ $(function () {
|
|||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
$.fn.tab = $.fn.bootstrapTab
|
$.fn.tab = $.fn.bootstrapTab
|
||||||
delete $.fn.bootstrapTab
|
delete $.fn.bootstrapTab
|
||||||
|
$('#qunit-fixture').html('')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ $(function () {
|
|||||||
$.fn.tooltip = $.fn.bootstrapTooltip
|
$.fn.tooltip = $.fn.bootstrapTooltip
|
||||||
delete $.fn.bootstrapTooltip
|
delete $.fn.bootstrapTooltip
|
||||||
$('.tooltip').remove()
|
$('.tooltip').remove()
|
||||||
|
$('#qunit-fixture').html('')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -3,7 +3,11 @@ $(function () {
|
|||||||
|
|
||||||
window.Util = typeof bootstrap !== 'undefined' ? bootstrap.Util : Util
|
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) {
|
QUnit.test('Util.getSelectorFromElement should return the correct element', function (assert) {
|
||||||
assert.expect(2)
|
assert.expect(2)
|
||||||
|
4389
package-lock.json
generated
4389
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -108,14 +108,14 @@
|
|||||||
"karma-coverage-istanbul-reporter": "^1.4.2",
|
"karma-coverage-istanbul-reporter": "^1.4.2",
|
||||||
"karma-detect-browsers": "^2.3.2",
|
"karma-detect-browsers": "^2.3.2",
|
||||||
"karma-firefox-launcher": "^1.1.0",
|
"karma-firefox-launcher": "^1.1.0",
|
||||||
"karma-qunit": "^1.2.1",
|
"karma-qunit": "^2.0.2",
|
||||||
"karma-sinon": "^1.0.5",
|
"karma-sinon": "^1.0.5",
|
||||||
"node-sass": "^4.9.0",
|
"node-sass": "^4.9.0",
|
||||||
"nodemon": "^1.17.4",
|
"nodemon": "^1.17.4",
|
||||||
"npm-run-all": "^4.1.2",
|
"npm-run-all": "^4.1.2",
|
||||||
"popper.js": "^1.14.3",
|
"popper.js": "^1.14.3",
|
||||||
"postcss-cli": "^5.0.0",
|
"postcss-cli": "^5.0.0",
|
||||||
"qunitjs": "^2.4.1",
|
"qunit": "^2.6.0",
|
||||||
"rollup": "^0.58.2",
|
"rollup": "^0.58.2",
|
||||||
"rollup-plugin-babel": "4.0.0-beta.4",
|
"rollup-plugin-babel": "4.0.0-beta.4",
|
||||||
"rollup-plugin-node-resolve": "^3.3.0",
|
"rollup-plugin-node-resolve": "^3.3.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user