2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +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
@@ -116,13 +116,8 @@ $(function () {
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')
})
})