forked from MapComplete/MapComplete
		
	Add more license information
This commit is contained in:
		
							parent
							
								
									f11930892e
								
							
						
					
					
						commit
						a16745d0d1
					
				
					 61 changed files with 508 additions and 4 deletions
				
			
		
							
								
								
									
										35
									
								
								test/ImageAttribution.spec.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								test/ImageAttribution.spec.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| import {Utils} from "../Utils"; | ||||
| 
 | ||||
| Utils.runningFromConsole = true; | ||||
| import {equal} from "assert"; | ||||
| import T from "./TestHelper"; | ||||
| import {FromJSON} from "../Customizations/JSON/FromJSON"; | ||||
| import Locale from "../UI/i18n/Locale"; | ||||
| import Translations from "../UI/i18n/Translations"; | ||||
| import {UIEventSource} from "../Logic/UIEventSource"; | ||||
| import TagRenderingConfig from "../Customizations/JSON/TagRenderingConfig"; | ||||
| import EditableTagRendering from "../UI/Popup/EditableTagRendering"; | ||||
| import {Translation} from "../UI/i18n/Translation"; | ||||
| import {OH, OpeningHour} from "../UI/OpeningHours/OpeningHours"; | ||||
| import PublicHolidayInput from "../UI/OpeningHours/PublicHolidayInput"; | ||||
| import {SubstitutedTranslation} from "../UI/SubstitutedTranslation"; | ||||
| import {Tag} from "../Logic/Tags/Tag"; | ||||
| import {And} from "../Logic/Tags/And"; | ||||
| import {ImageSearcher} from "../Logic/Actors/ImageSearcher"; | ||||
| 
 | ||||
| 
 | ||||
| new T("ImageSearcher", [ | ||||
|     [ | ||||
|         "Should find images", | ||||
|         () => { | ||||
|             const tags = new UIEventSource({ | ||||
|                 "mapillary": "https://www.mapillary.com/app/?pKey=bYH6FFl8LXAPapz4PNSh3Q" | ||||
|             }); | ||||
|             const searcher = ImageSearcher.construct(tags) | ||||
|             const result = searcher.data[0]; | ||||
|             equal(result.url, "https://www.mapillary.com/map/im/bYH6FFl8LXAPapz4PNSh3Q"); | ||||
|         } | ||||
|     ] | ||||
| 
 | ||||
| 
 | ||||
| ]) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue