forked from MapComplete/MapComplete
		
	Fix tests
This commit is contained in:
		
							parent
							
								
									b3009367a3
								
							
						
					
					
						commit
						c0f7de25fd
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -701,12 +701,12 @@ export default class TagRenderingConfig {
 | 
			
		|||
     *
 | 
			
		||||
     * const config = new TagRenderingConfig({"id":"capacity", "render": "Fits {capcity} books",freeform: {"key":"capacity",type:"pnat"} })
 | 
			
		||||
     * config.constructChangeSpecification("", undefined, undefined, {}) // => undefined
 | 
			
		||||
     * config.constructChangeSpecification("5", undefined, undefined, {}).optimize() // => [new Tag("capacity", "5")]
 | 
			
		||||
     * config.constructChangeSpecification("5", undefined, undefined, {}) // => [new Tag("capacity", "5")]
 | 
			
		||||
     *
 | 
			
		||||
     * // Should pick a mapping, even if freeform is usedconstructChange
 | 
			
		||||
     * const config = new TagRenderingConfig({"id": "shop-types", render: "Shop type is {shop}", freeform: {key: "shop", addExtraTags:["fixme=freeform shop type used"]}, mappings:[{if: "shop=second_hand", then: "Second hand shop"}]})
 | 
			
		||||
     * config.constructChangeSpecification("freeform", 1, undefined, {}).asHumanString(false,  false, {}) // => [new Tag("shop","freeform",new Tag("fixme","freeform shop type used")]
 | 
			
		||||
     * config.constructChangeSpecification("freeform", undefined, undefined, {}) // => [new Tag("shop","freeform), new Tag("fixme","freeform shop type used")]
 | 
			
		||||
     * config.constructChangeSpecification("freeform", 1, undefined, {}) // => [new Tag("shop","freeform"),new Tag("fixme","freeform shop type used")]
 | 
			
		||||
     * config.constructChangeSpecification("freeform", undefined, undefined, {}) // => [new Tag("shop","freeform"), new Tag("fixme","freeform shop type used")]
 | 
			
		||||
     * config.constructChangeSpecification("second_hand", 1, undefined, {}) // => [new Tag("shop","second_hand")]
 | 
			
		||||
     *
 | 
			
		||||
     *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue