Commit bdab9486 authored by XhmikosR's avatar XhmikosR
Browse files

Remove unneeded conditional

Showing with 7 additions and 13 deletions
+7 -13
$(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()
}
}) })
}) })
$(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()
}
}) })
}) })
$(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')
......
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