diff options
author | Johann-S <johann.servoire@gmail.com> | 2018-12-06 11:51:35 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-12-06 11:51:35 +0300 |
commit | fa03289d1381247b1ce72cdbd7424fbf4bfb493a (patch) | |
tree | 487f5e487229ba1beabdb52fd264d6ab71d92e0e /js/tests/unit | |
parent | 947f749e23ac8c0eab734662e2d6b69f938e9596 (diff) |
avoid console call in our unit tests (#27790)
Diffstat (limited to 'js/tests/unit')
-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 7a3b99ead0..86d851ad06 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 289f8aebff..54dbe57bd8 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 2fd6f6b7cb..cb93831433 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>' |