2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Remove unneeded conditional

This commit is contained in:
XhmikosR
2020-11-27 14:27:35 +02:00
parent af52795501
commit bdab948670
3 changed files with 7 additions and 13 deletions
+3 -5
View File
@@ -1,6 +1,8 @@
$(function () {
'use strict'
window.Alert = typeof bootstrap !== 'undefined' ? bootstrap.Alert : Alert
QUnit.module('alert plugin')
QUnit.test('should be defined on jquery object', function (assert) {
@@ -114,10 +116,6 @@ $(function () {
QUnit.test('should return alert version', function (assert) {
assert.expect(1)
if (typeof Alert !== 'undefined') {
assert.strictEqual(typeof Alert.VERSION, 'string')
} else {
assert.notOk()
}
assert.strictEqual(typeof Alert.VERSION, 'string')
})
})