mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-03 03:29:21 +01:00
20 lines
519 B
JavaScript
20 lines
519 B
JavaScript
$(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
|
|
})
|
|
})
|