mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
avoid console call in our unit tests (#27790)
This commit is contained in:
parent
947f749e23
commit
fa03289d13
3 changed files with 1 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
||||||
},
|
},
|
||||||
"extends": "../../../.eslintrc.json",
|
"extends": "../../../.eslintrc.json",
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-console": "off",
|
"no-console": "error",
|
||||||
// Best Practices
|
// Best Practices
|
||||||
"consistent-return": "off",
|
"consistent-return": "off",
|
||||||
"no-magic-numbers": "off",
|
"no-magic-numbers": "off",
|
||||||
|
|
|
@ -563,7 +563,6 @@ $(function () {
|
||||||
$tooltip.bootstrapTooltip('show')
|
$tooltip.bootstrapTooltip('show')
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
passed = false
|
passed = false
|
||||||
console.log(err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert.ok(passed, '.tooltip(\'show\') should not throw an error if element no longer is in dom')
|
assert.ok(passed, '.tooltip(\'show\') should not throw an error if element no longer is in dom')
|
||||||
|
|
|
@ -137,7 +137,6 @@ $(function () {
|
||||||
var shadowRoot = $div[0].attachShadow({
|
var shadowRoot = $div[0].attachShadow({
|
||||||
mode: 'open'
|
mode: 'open'
|
||||||
})
|
})
|
||||||
console.warn($div[0].attachShadow, shadowRoot)
|
|
||||||
|
|
||||||
assert.equal(shadowRoot, Util.findShadowRoot(shadowRoot))
|
assert.equal(shadowRoot, Util.findShadowRoot(shadowRoot))
|
||||||
shadowRoot.innerHTML = '<button>Shadow Button</button>'
|
shadowRoot.innerHTML = '<button>Shadow Button</button>'
|
||||||
|
|
Loading…
Add table
Reference in a new issue