aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/button.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-02-27 13:20:25 +0200
committerGitHub <[email protected]>2019-02-27 13:20:25 +0200
commit9cbd041f6b0b24db4feadc08a4ab967512bd448a (patch)
tree7e53b412494460e755dd1fdb81e603b7b98cbff8 /js/tests/unit/button.js
parentbc60a22a1843928814099ef5e6e26552f55aebae (diff)
downloadbootstrap-9cbd041f6b0b24db4feadc08a4ab967512bd448a.tar.xz
bootstrap-9cbd041f6b0b24db4feadc08a4ab967512bd448a.zip
tests: add tests for plugins version. (#28366)
Diffstat (limited to 'js/tests/unit/button.js')
-rw-r--r--js/tests/unit/button.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/js/tests/unit/button.js b/js/tests/unit/button.js
index a1d15116b..bd393078b 100644
--- a/js/tests/unit/button.js
+++ b/js/tests/unit/button.js
@@ -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')
})
})