diff options
| author | Johann-S <[email protected]> | 2018-12-06 09:51:35 +0100 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-12-06 10:51:35 +0200 |
| commit | fa03289d1381247b1ce72cdbd7424fbf4bfb493a (patch) | |
| tree | 487f5e487229ba1beabdb52fd264d6ab71d92e0e /js/tests | |
| parent | 947f749e23ac8c0eab734662e2d6b69f938e9596 (diff) | |
| download | bootstrap-fa03289d1381247b1ce72cdbd7424fbf4bfb493a.tar.xz bootstrap-fa03289d1381247b1ce72cdbd7424fbf4bfb493a.zip | |
avoid console call in our unit tests (#27790)
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/unit/.eslintrc.json | 2 | ||||
| -rw-r--r-- | js/tests/unit/tooltip.js | 1 | ||||
| -rw-r--r-- | js/tests/unit/util.js | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/js/tests/unit/.eslintrc.json b/js/tests/unit/.eslintrc.json index 7a3b99ead..86d851ad0 100644 --- a/js/tests/unit/.eslintrc.json +++ b/js/tests/unit/.eslintrc.json @@ -20,7 +20,7 @@ }, "extends": "../../../.eslintrc.json", "rules": { - "no-console": "off", + "no-console": "error", // Best Practices "consistent-return": "off", "no-magic-numbers": "off", diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index 289f8aebf..54dbe57bd 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -563,7 +563,6 @@ $(function () { $tooltip.bootstrapTooltip('show') } catch (err) { passed = false - console.log(err) } assert.ok(passed, '.tooltip(\'show\') should not throw an error if element no longer is in dom') diff --git a/js/tests/unit/util.js b/js/tests/unit/util.js index 2fd6f6b7c..cb9383143 100644 --- a/js/tests/unit/util.js +++ b/js/tests/unit/util.js @@ -137,7 +137,6 @@ $(function () { var shadowRoot = $div[0].attachShadow({ mode: 'open' }) - console.warn($div[0].attachShadow, shadowRoot) assert.equal(shadowRoot, Util.findShadowRoot(shadowRoot)) shadowRoot.innerHTML = '<button>Shadow Button</button>' |
