Skip to content

Commit 63fe264

Browse files
committed
Changed toPrecision test to use toFixed
Despite the bad name, this is to agree with the Java ibex_gui code which uses fixed precision (N decimal places, rather than N significant figures).
1 parent 09ce0f0 commit 63fe264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/InstrumentPage.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ test("toPrecision truncates block if it has precision", () => {
4949
precision: precision,
5050
};
5151
expect(toPrecision(aBlock, originalValue)).toBe(
52-
originalValue.toPrecision(precision),
52+
originalValue.toFixed(precision),
5353
);
5454
});
5555

0 commit comments

Comments
 (0)