mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
	
	
		
			11 lines
		
	
	
		
			261 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			261 B
		
	
	
	
		
			JavaScript
		
	
	
	
|  | it("should support an empty context", function() { | ||
|  | 	var c = require.context(".", true, /^nothing$/); | ||
|  | 	c.id.should.be.type("number"); | ||
|  | 	(function() { | ||
|  | 		c.resolve(""); | ||
|  | 	}).should.throw(); | ||
|  | 	(function() { | ||
|  | 		c(""); | ||
|  | 	}).should.throw(); | ||
|  | 	c.keys().should.be.eql([]); | ||
|  | }); |