mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-04 04:29:23 +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
|
||
|
})
|
||
|
})
|