mirror of https://github.com/webpack/webpack.git
				
				
				
			Added a test case
This commit is contained in:
		
							parent
							
								
									f16388a22d
								
							
						
					
					
						commit
						ed75ab8fe8
					
				|  | @ -0,0 +1,4 @@ | ||||||
|  | it("should not use regexps with the g flag", function() { | ||||||
|  | 	require.context("./folder", true, /a/).keys().length.should.be.eql(1); | ||||||
|  | 	require.context("./folder", true, /a/g).keys().length.should.be.eql(0); | ||||||
|  | }); | ||||||
|  | @ -0,0 +1,3 @@ | ||||||
|  | module.exports = [ | ||||||
|  | 	[/Critical dependency: Contexts can't use RegExps with the 'g' or 'y' flags/], | ||||||
|  | ]; | ||||||
		Loading…
	
		Reference in New Issue