mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01:00
fix(util): increase util coverage
This commit is contained in:
parent
096413a994
commit
a1cc9a6e33
@ -160,4 +160,22 @@ $(function () {
|
||||
sandbox.restore()
|
||||
}
|
||||
})
|
||||
|
||||
QUnit.test('noop should return an empty function', function (assert) {
|
||||
assert.expect(1)
|
||||
Util.noop().call()
|
||||
assert.ok(typeof Util.noop() === 'function')
|
||||
})
|
||||
|
||||
QUnit.test('should return jQuery if present', function (assert) {
|
||||
assert.expect(2)
|
||||
|
||||
assert.equal(Util.jQuery, $)
|
||||
|
||||
$.noConflict()
|
||||
|
||||
assert.equal(Util.jQuery, jQuery)
|
||||
|
||||
window.$ = jQuery
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user