mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			21 lines
		
	
	
		
			528 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			528 B
		
	
	
	
		
			JavaScript
		
	
	
	
it("should ignore require.config", function() {
 | 
						|
	require.config({
 | 
						|
 | 
						|
	});
 | 
						|
	requirejs.config({
 | 
						|
 | 
						|
	});
 | 
						|
});
 | 
						|
it("should have a require.version", function() {
 | 
						|
	expect(require.version).toBeTypeOf("string");
 | 
						|
});
 | 
						|
it("should have a requirejs.onError function", function(done) {
 | 
						|
	function f(){}
 | 
						|
	expect(requirejs.onError).toBeTypeOf("undefined"); // has no default handler
 | 
						|
	var org = requirejs.onError;
 | 
						|
	requirejs.onError = f;
 | 
						|
	expect(requirejs.onError).toBe(f);
 | 
						|
	requirejs.onError = org;
 | 
						|
	require(["./file.js"], function() { done() });
 | 
						|
});
 |