mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
tests: add tests for plugins version. (#28366)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
$(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) {
|
||||
@@ -520,4 +522,9 @@ $(function () {
|
||||
|
||||
$('#secondNav')[0].click()
|
||||
})
|
||||
|
||||
QUnit.test('should return the version', function (assert) {
|
||||
assert.expect(1)
|
||||
assert.strictEqual(typeof Tab.VERSION, 'string')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user