mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-01 03:26:36 +08:00 
			
		
		
		
	Fixed JS tests (#16695)
This commit is contained in:
		 Alexander Makarov
					Alexander Makarov
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							97bd72374d
						
					
				
				
					commit
					dad0938918
				
			| @ -33,7 +33,6 @@ describe('yii.activeForm', function () { | ||||
|     var html = '<!doctype html><html><head><meta charset="utf-8"></head><body>' + activeFormHtml + '</body></html>'; | ||||
|  | ||||
|     jsdom({ | ||||
|         url: 'http://localhost', | ||||
|         html: html, | ||||
|         src: fs.readFileSync(jQueryPath, 'utf-8') | ||||
|     }); | ||||
|  | ||||
| @ -29,7 +29,6 @@ describe('yii.captcha', function () { | ||||
|     var html = '<!doctype html><html><head><meta charset="utf-8"></head><body>' + imgHtml + '</body></html>'; | ||||
|  | ||||
|     jsdom({ | ||||
|         url: 'http://localhost', | ||||
|         html: html, | ||||
|         src: fs.readFileSync(jQueryPath, 'utf-8') | ||||
|     }); | ||||
|  | ||||
| @ -50,7 +50,6 @@ describe('yii.gridView', function () { | ||||
|     var html = '<!doctype html><html><head><meta charset="utf-8"></head><body>' + gridViewHtml + '</body></html>'; | ||||
|  | ||||
|     jsdom({ | ||||
|         url: 'http://localhost', | ||||
|         html: html, | ||||
|         src: fs.readFileSync(jQueryPath, 'utf-8') | ||||
|     }); | ||||
|  | ||||
| @ -73,7 +73,6 @@ describe('yii', function () { | ||||
|     } | ||||
|  | ||||
|     jsdom({ | ||||
|         url: 'http://localhost', | ||||
|         html: fs.readFileSync('tests/js/data/yii.html', 'utf-8'), | ||||
|         src: fs.readFileSync(jQueryPath, 'utf-8') | ||||
|     }); | ||||
|  | ||||
| @ -76,7 +76,6 @@ describe('yii.validation', function () { | ||||
|     } | ||||
|  | ||||
|     jsdom({ | ||||
|         url: 'http://localhost', | ||||
|         src: fs.readFileSync('vendor/bower-asset/jquery/dist/jquery.js', 'utf-8') | ||||
|     }); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user