forked from MapComplete/MapComplete
Chore: formatting
This commit is contained in:
parent
35eff07c80
commit
c08fe03ed0
422 changed files with 31594 additions and 43019 deletions
|
@ -41,7 +41,14 @@ describe("Unit", () => {
|
|||
|
||||
const canonical = denomintion.canonicalValue("5", true, true)
|
||||
expect(canonical).toBe("5/year")
|
||||
const unit = new Unit("quantity", ["key"], [denomintion], false, Validators.get("float"), true)
|
||||
const unit = new Unit(
|
||||
"quantity",
|
||||
["key"],
|
||||
[denomintion],
|
||||
false,
|
||||
Validators.get("float"),
|
||||
true
|
||||
)
|
||||
const [detected, detectedDenom] = unit.findDenomination("5/year", () => "be")
|
||||
expect(detected).toBe("5")
|
||||
expect(detectedDenom).toBe(denomintion)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue