forked from MapComplete/MapComplete
		
	Tests: add testcase
This commit is contained in:
		
							parent
							
								
									9254b95237
								
							
						
					
					
						commit
						5281bcda27
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -5,10 +5,7 @@ import { TagUtils } from "../../Logic/Tags/TagUtils" | ||||||
| import { And } from "../../Logic/Tags/And" | import { And } from "../../Logic/Tags/And" | ||||||
| import { Utils } from "../../Utils" | import { Utils } from "../../Utils" | ||||||
| import { Tag } from "../../Logic/Tags/Tag" | import { Tag } from "../../Logic/Tags/Tag" | ||||||
| import { | import { MappingConfigJson, QuestionableTagRenderingConfigJson } from "./Json/QuestionableTagRenderingConfigJson" | ||||||
|     MappingConfigJson, |  | ||||||
|     QuestionableTagRenderingConfigJson, |  | ||||||
| } from "./Json/QuestionableTagRenderingConfigJson" |  | ||||||
| import Validators, { ValidatorType } from "../../UI/InputElement/Validators" | import Validators, { ValidatorType } from "../../UI/InputElement/Validators" | ||||||
| import { TagRenderingConfigJson } from "./Json/TagRenderingConfigJson" | import { TagRenderingConfigJson } from "./Json/TagRenderingConfigJson" | ||||||
| import { RegexTag } from "../../Logic/Tags/RegexTag" | import { RegexTag } from "../../Logic/Tags/RegexTag" | ||||||
|  | @ -572,6 +569,9 @@ export default class TagRenderingConfig { | ||||||
|      * Gets the correct rendering value (or undefined if not known) |      * Gets the correct rendering value (or undefined if not known) | ||||||
|      * Not compatible with multiAnswer - use GetRenderValueS instead in that case |      * Not compatible with multiAnswer - use GetRenderValueS instead in that case | ||||||
|      * @constructor |      * @constructor | ||||||
|  |      * | ||||||
|  |      * const tr = new TagRenderingConfig({question: "q", render: "{charge}", freeform: {key: "charge", postfixDistinguished: "condom"} }) | ||||||
|  |      * tr.GetRenderValueWithImage({charge: "€2/condom"}).then.textFor("en") // => "€2"
 | ||||||
|      */ |      */ | ||||||
|     public GetRenderValueWithImage( |     public GetRenderValueWithImage( | ||||||
|         tags: Record<string, string> |         tags: Record<string, string> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue