assert.ok(Alert._getInstance($alert[0]) === null)
})
- QUnit.test('should return alert version', function (assert) {
+ QUnit.test('should return the version', function (assert) {
assert.expect(1)
-
- if (typeof Alert !== 'undefined') {
- assert.ok(typeof Alert.VERSION === 'string')
- } else {
- assert.notOk()
- }
+ assert.strictEqual(typeof Alert.VERSION, 'string')
})
})
assert.ok(Button._getInstance($button[0]) === null)
})
- QUnit.test('should return button version', function (assert) {
+ QUnit.test('should return the version', function (assert) {
assert.expect(1)
-
- if (typeof Button !== 'undefined') {
- assert.ok(typeof Button.VERSION === 'string')
- } else {
- assert.notOk()
- }
+ assert.strictEqual(typeof Button.VERSION, 'string')
})
})
assert.strictEqual(typeof $.fn.carousel, 'undefined', 'carousel was set back to undefined (orig value)')
})
- QUnit.test('should return version', function (assert) {
+ QUnit.test('should return the version', function (assert) {
assert.expect(1)
-
assert.strictEqual(typeof Carousel.VERSION, 'string')
})
$collapse2.bootstrapCollapse('toggle')
})
+
+ QUnit.test('should return the version', function (assert) {
+ assert.expect(1)
+ assert.strictEqual(typeof Collapse.VERSION, 'string')
+ })
})
assert.strictEqual(offset.offset, myOffset)
assert.ok(typeof offset.fn === 'undefined')
})
+
+ QUnit.test('should return the version', function (assert) {
+ assert.expect(1)
+ assert.strictEqual(typeof Dropdown.VERSION, 'string')
+ })
})
})
.bootstrapModal('show')
})
+
+ QUnit.test('should return the version', function (assert) {
+ assert.expect(1)
+ assert.strictEqual(typeof Modal.VERSION, 'string')
+ })
})
$popover[0].click()
})
+
+ QUnit.test('should return the version', function (assert) {
+ assert.expect(1)
+ assert.strictEqual(typeof Popover.VERSION, 'string')
+ })
})
testOffsetMethod('js')
testOffsetMethod('data')
})
+
+ QUnit.test('should return the version', function (assert) {
+ assert.expect(1)
+ assert.strictEqual(typeof ScrollSpy.VERSION, 'string')
+ })
})
$(function () {
'use strict'
+ var Tab = typeof window.bootstrap !== 'undefined' ? window.bootstrap.Tab : window.Tab
+
QUnit.module('tabs plugin')
QUnit.test('should be defined on jquery object', function (assert) {
$('#secondNav')[0].click()
})
+
+ QUnit.test('should return the version', function (assert) {
+ assert.expect(1)
+ assert.strictEqual(typeof Tab.VERSION, 'string')
+ })
})
assert.strictEqual(tooltip.config.sanitize, true)
})
+
+ QUnit.test('should return the version', function (assert) {
+ assert.expect(1)
+ assert.strictEqual(typeof Tooltip.VERSION, 'string')
+ })
})