Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
a1cc9a6e
Commit
a1cc9a6e
authored
6 years ago
by
Johann-S
Committed by
XhmikosR
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix(util): increase util coverage
parent
096413a9
5 merge requests
!31948
Examples/Floating-labels: fix bad behavior with autofill
,
!30064
test
,
!29779
Responsive sizing
,
!28882
fix custom-select-indicator in IE10
,
!28721
Hot test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/tests/unit/util.js
+18
-0
js/tests/unit/util.js
with
18 additions
and
0 deletions
+18
-0
js/tests/unit/util.js
+
18
-
0
View file @
a1cc9a6e
...
@@ -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
})
})
})
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets