forked from MapComplete/MapComplete
		
	Add support for units to clean up tags when they enter mapcomplete; add example of this usage in the climbing theme, add climbing theme title icons with length and needed number of carabiners
This commit is contained in:
		
							parent
							
								
									89f6f606c8
								
							
						
					
					
						commit
						966fcda8d1
					
				
					 20 changed files with 302 additions and 111 deletions
				
			
		|  | @ -1,5 +1,5 @@ | |||
| import T from "./TestHelper"; | ||||
| import {Unit} from "../Customizations/JSON/Unit"; | ||||
| import {Denomination} from "../Customizations/JSON/Denomination"; | ||||
| import {equal} from "assert"; | ||||
| 
 | ||||
| export default class UnitsSpec extends T { | ||||
|  | @ -8,7 +8,7 @@ export default class UnitsSpec extends T { | |||
|         super("Units", [ | ||||
|             ["Simple canonicalize", () => { | ||||
| 
 | ||||
|                 const unit = new Unit({ | ||||
|                 const unit = new Denomination({ | ||||
|                     canonicalDenomination: "m", | ||||
|                     alternativeDenomination: ["meter"], | ||||
|                     'default': true, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue