mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-18 19:31:35 +02:00
Change Rollup config to wrap our dist files with jQuery instead of $
This commit is contained in:
@@ -119,7 +119,6 @@
|
||||
<script src="unit/tab.js"></script>
|
||||
<script src="unit/tooltip.js"></script>
|
||||
<script src="unit/popover.js"></script>
|
||||
<script src="unit/util.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="qunit-container">
|
||||
|
@@ -1,19 +0,0 @@
|
||||
$(function () {
|
||||
'use strict'
|
||||
|
||||
QUnit.module('Util')
|
||||
|
||||
QUnit.test('Util.jQuery should find window.jQuery if window.$ is not available', function (assert) {
|
||||
assert.expect(1)
|
||||
delete window.$
|
||||
assert.strictEqual(Util.jQuery, window.jQuery)
|
||||
window.$ = Util.jQuery
|
||||
})
|
||||
|
||||
QUnit.test('Util.jQuery should find window.$ if window.jQuery is not available', function (assert) {
|
||||
assert.expect(1)
|
||||
delete window.jQuery
|
||||
assert.strictEqual(Util.jQuery, window.$)
|
||||
window.jQuery = Util.jQuery
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user