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
bdab9486
Commit
bdab9486
authored
4 years ago
by
XhmikosR
Browse files
Options
Download
Email Patches
Plain Diff
Remove unneeded conditional
parent
af527955
v4-dev-dropdown-hide-method
v4-dev
v4.6.2
v4.6.1
1 merge request
!36532
My v4 dev
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
js/tests/unit/alert.js
+3
-5
js/tests/unit/alert.js
js/tests/unit/button.js
+3
-5
js/tests/unit/button.js
js/tests/unit/toast.js
+1
-3
js/tests/unit/toast.js
with
7 additions
and
13 deletions
+7
-13
js/tests/unit/alert.js
+
3
-
5
View file @
bdab9486
$
(
function
()
{
$
(
function
()
{
'
use strict
'
'
use strict
'
window
.
Alert
=
typeof
bootstrap
!==
'
undefined
'
?
bootstrap
.
Alert
:
Alert
QUnit
.
module
(
'
alert plugin
'
)
QUnit
.
module
(
'
alert plugin
'
)
QUnit
.
test
(
'
should be defined on jquery object
'
,
function
(
assert
)
{
QUnit
.
test
(
'
should be defined on jquery object
'
,
function
(
assert
)
{
...
@@ -114,10 +116,6 @@ $(function () {
...
@@ -114,10 +116,6 @@ $(function () {
QUnit
.
test
(
'
should return alert version
'
,
function
(
assert
)
{
QUnit
.
test
(
'
should return alert version
'
,
function
(
assert
)
{
assert
.
expect
(
1
)
assert
.
expect
(
1
)
if
(
typeof
Alert
!==
'
undefined
'
)
{
assert
.
strictEqual
(
typeof
Alert
.
VERSION
,
'
string
'
)
assert
.
strictEqual
(
typeof
Alert
.
VERSION
,
'
string
'
)
}
else
{
assert
.
notOk
()
}
})
})
})
})
This diff is collapsed.
Click to expand it.
js/tests/unit/button.js
+
3
-
5
View file @
bdab9486
$
(
function
()
{
$
(
function
()
{
'
use strict
'
'
use strict
'
window
.
Button
=
typeof
bootstrap
!==
'
undefined
'
?
bootstrap
.
Button
:
Button
QUnit
.
module
(
'
button plugin
'
)
QUnit
.
module
(
'
button plugin
'
)
QUnit
.
test
(
'
should be defined on jquery object
'
,
function
(
assert
)
{
QUnit
.
test
(
'
should be defined on jquery object
'
,
function
(
assert
)
{
...
@@ -472,10 +474,6 @@ $(function () {
...
@@ -472,10 +474,6 @@ $(function () {
QUnit
.
test
(
'
should return button version
'
,
function
(
assert
)
{
QUnit
.
test
(
'
should return button version
'
,
function
(
assert
)
{
assert
.
expect
(
1
)
assert
.
expect
(
1
)
if
(
typeof
Button
!==
'
undefined
'
)
{
assert
.
strictEqual
(
typeof
Button
.
VERSION
,
'
string
'
)
assert
.
strictEqual
(
typeof
Button
.
VERSION
,
'
string
'
)
}
else
{
assert
.
notOk
()
}
})
})
})
})
This diff is collapsed.
Click to expand it.
js/tests/unit/toast.js
+
1
-
3
View file @
bdab9486
$
(
function
()
{
$
(
function
()
{
'
use strict
'
'
use strict
'
if
(
typeof
bootstrap
!==
'
undefined
'
)
{
window
.
Toast
=
typeof
bootstrap
!==
'
undefined
'
?
bootstrap
.
Toast
:
Toast
window
.
Toast
=
bootstrap
.
Toast
}
QUnit
.
module
(
'
toast plugin
'
)
QUnit
.
module
(
'
toast plugin
'
)
...
...
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