mirror of https://github.com/webpack/webpack.git
				
				
				
			added tests for var
This commit is contained in:
		
							parent
							
								
									d91d17f2cf
								
							
						
					
					
						commit
						bd5fd5a886
					
				|  | @ -85,6 +85,16 @@ describe("Parser", () => { | ||||||
| 				fgh.sub; | 				fgh.sub; | ||||||
| 			}, {} | 			}, {} | ||||||
| 		], | 		], | ||||||
|  | 		"var definition": [ | ||||||
|  | 			function() { | ||||||
|  | 				let abc, cde, fgh; | ||||||
|  | 				abc("test"); | ||||||
|  | 				cde.abc("test"); | ||||||
|  | 				cde.ddd.abc("test"); | ||||||
|  | 				fgh; | ||||||
|  | 				fgh.sub; | ||||||
|  | 			}, {} | ||||||
|  | 		], | ||||||
| 		"function definition": [ | 		"function definition": [ | ||||||
| 			function() { | 			function() { | ||||||
| 				function abc() {} | 				function abc() {} | ||||||
|  | @ -126,6 +136,14 @@ describe("Parser", () => { | ||||||
| 				abc: ["test"] | 				abc: ["test"] | ||||||
| 			} | 			} | ||||||
| 		], | 		], | ||||||
|  | 		"renaming with var": [ | ||||||
|  | 			function() { | ||||||
|  | 				const xyz = abc; | ||||||
|  | 				xyz("test"); | ||||||
|  | 			}, { | ||||||
|  | 				abc: ["test"] | ||||||
|  | 			} | ||||||
|  | 		], | ||||||
| 		"renaming with assignment": [ | 		"renaming with assignment": [ | ||||||
| 			function() { | 			function() { | ||||||
| 				const xyz = abc; | 				const xyz = abc; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue