diff options
| author | XhmikosR <[email protected]> | 2019-02-27 13:20:25 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-02-27 13:20:25 +0200 |
| commit | 9cbd041f6b0b24db4feadc08a4ab967512bd448a (patch) | |
| tree | 7e53b412494460e755dd1fdb81e603b7b98cbff8 /js/tests/unit/button.js | |
| parent | bc60a22a1843928814099ef5e6e26552f55aebae (diff) | |
| download | bootstrap-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.js | 9 |
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') }) }) |
