2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +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
+2 -7
View File
@@ -218,13 +218,8 @@ $(function () {
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')
})
})