mirror of https://github.com/twbs/bootstrap.git
				
				
				
			avoid console call in our unit tests (#27790)
This commit is contained in:
		
							parent
							
								
									947f749e23
								
							
						
					
					
						commit
						fa03289d13
					
				| 
						 | 
				
			
			@ -20,7 +20,7 @@
 | 
			
		|||
  },
 | 
			
		||||
  "extends": "../../../.eslintrc.json",
 | 
			
		||||
  "rules": {
 | 
			
		||||
    "no-console": "off",
 | 
			
		||||
    "no-console": "error",
 | 
			
		||||
    // Best Practices
 | 
			
		||||
    "consistent-return": "off",
 | 
			
		||||
    "no-magic-numbers": "off",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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>'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue