I missed a bit in a refactor, and it wasn't covered by the spec.
This commit is contained in:
David Cook
2024-03-27 20:13:59 +11:00
parent b2881bb169
commit 99121943a7
2 changed files with 3 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ describe("VariantUnitManager", function() {
it("returns a sorted set of compatible scales based on the scale and unit type provided", function() {
expect(subject.compatibleUnitScales(1, "weight")).toEqual([1.0, 1000.0, 1000000.0]);
expect(subject.compatibleUnitScales(453.6, "weight")).toEqual([28.35, 453.6]);
expect(subject.compatibleUnitScales(0.001, "volume")).toEqual([0.001, 1.0, 1000.0]);
});
});
});