2
0
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:
XhmikosR
2019-02-27 13:20:25 +02:00
committed by GitHub
parent bc60a22a18
commit 9cbd041f6b
10 changed files with 42 additions and 16 deletions
+7
View File
@@ -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')
})
})