Skip to content

Commit

Permalink
avoid console call in our unit tests (#27790)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann-S authored and XhmikosR committed Dec 6, 2018
1 parent 947f749 commit fa03289
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion js/tests/unit/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"extends": "../../../.eslintrc.json",
"rules": {
"no-console": "off",
"no-console": "error",
// Best Practices
"consistent-return": "off",
"no-magic-numbers": "off",
Expand Down
1 change: 0 additions & 1 deletion js/tests/unit/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 0 additions & 1 deletion js/tests/unit/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>'
Expand Down

0 comments on commit fa03289

Please sign in to comment.