Commit a1cc9a6e authored by Johann-S's avatar Johann-S Committed by XhmikosR
Browse files

fix(util): increase util coverage

parent 096413a9
5 merge requests!31948Examples/Floating-labels: fix bad behavior with autofill,!30064test,!29779Responsive sizing,!28882fix custom-select-indicator in IE10,!28721Hot test
Showing with 18 additions and 0 deletions
+18 -0
...@@ -160,4 +160,22 @@ $(function () { ...@@ -160,4 +160,22 @@ $(function () {
sandbox.restore() 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
})
}) })
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment