diff options
| author | XhmikosR <[email protected]> | 2019-02-26 13:20:34 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-03-11 17:01:28 +0200 |
| commit | 46c037410b8c7eaab3cf50a5cf44093aa2fd41f4 (patch) | |
| tree | cb8c857562c4d3f819a5a8fcc563bc8f2c126e4e /js/tests/unit/util | |
| parent | 44e6abcba50309df4fae56a9c7ef79145b64a356 (diff) | |
| download | bootstrap-46c037410b8c7eaab3cf50a5cf44093aa2fd41f4.tar.xz bootstrap-46c037410b8c7eaab3cf50a5cf44093aa2fd41f4.zip | |
Comply to the new rules.
Diffstat (limited to 'js/tests/unit/util')
| -rw-r--r-- | js/tests/unit/util/index.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/tests/unit/util/index.js b/js/tests/unit/util/index.js index 2d52ca59a..19d3891d3 100644 --- a/js/tests/unit/util/index.js +++ b/js/tests/unit/util/index.js @@ -44,8 +44,8 @@ $(function () { try { Util.typeCheckConfig(namePlugin, config, defaultType) - } catch (err) { - assert.strictEqual(err.message, 'COLLAPSE: Option "parent" provided type "number" but expected type "(string|element)".') + } catch (error) { + assert.strictEqual(error.message, 'COLLAPSE: Option "parent" provided type "number" but expected type "(string|element)".') } }) @@ -139,9 +139,7 @@ $(function () { assert.expect(1) var $div = $('<div id="test"></div>').appendTo($('#qunit-fixture')) - if (!document.documentElement.attachShadow) { - assert.equal(null, Util.findShadowRoot($div[0])) - } else { + if (document.documentElement.attachShadow) { var sandbox = sinon.createSandbox() sandbox.replace(document.documentElement, 'attachShadow', function () { @@ -151,6 +149,8 @@ $(function () { assert.equal(null, Util.findShadowRoot($div[0])) sandbox.restore() + } else { + assert.equal(null, Util.findShadowRoot($div[0])) } }) |
