mirror of https://github.com/twbs/bootstrap.git
				
				
				
			fix(util): increase util coverage
This commit is contained in:
		
							parent
							
								
									096413a994
								
							
						
					
					
						commit
						a1cc9a6e33
					
				| 
						 | 
				
			
			@ -160,4 +160,22 @@ $(function () {
 | 
			
		|||
      sandbox.restore()
 | 
			
		||||
    }
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
  QUnit.test('noop should return an empty function', function (assert) {
 | 
			
		||||
    assert.expect(1)
 | 
			
		||||
    Util.noop().call()
 | 
			
		||||
    assert.ok(typeof Util.noop() === 'function')
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
  QUnit.test('should return jQuery if present', function (assert) {
 | 
			
		||||
    assert.expect(2)
 | 
			
		||||
 | 
			
		||||
    assert.equal(Util.jQuery, $)
 | 
			
		||||
 | 
			
		||||
    $.noConflict()
 | 
			
		||||
 | 
			
		||||
    assert.equal(Util.jQuery, jQuery)
 | 
			
		||||
 | 
			
		||||
    window.$ = jQuery
 | 
			
		||||
  })
 | 
			
		||||
})
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue