aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2018-12-06 09:51:35 +0100
committerXhmikosR <[email protected]>2018-12-06 10:51:35 +0200
commitfa03289d1381247b1ce72cdbd7424fbf4bfb493a (patch)
tree487f5e487229ba1beabdb52fd264d6ab71d92e0e /js/tests
parent947f749e23ac8c0eab734662e2d6b69f938e9596 (diff)
downloadbootstrap-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.json2
-rw-r--r--js/tests/unit/tooltip.js1
-rw-r--r--js/tests/unit/util.js1
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>'