Skip to content
Snippets Groups Projects
Unverified Commit 59aba0b2 authored by Paul Rosenzweig's avatar Paul Rosenzweig Committed by GitHub
Browse files

Re-enable formatting unit tests (#10061)

parent 11c1223b
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,7 @@ describe("formatting", () => {
expect(formatNumber(-10)).toEqual("-10");
expect(formatNumber(-99999999)).toEqual("-99,999,999");
});
// FIXME: failing on CI
xit("should format to 2 significant digits", () => {
it("should format to 2 significant digits", () => {
expect(formatNumber(1 / 3)).toEqual("0.33");
expect(formatNumber(-1 / 3)).toEqual("-0.33");
expect(formatNumber(0.0001 / 3)).toEqual("0.000033");
......@@ -60,8 +59,7 @@ describe("formatting", () => {
expect(formatNumber(-0.22, options)).toEqual("-22%");
});
});
// FIXME: failing on CI
xit("should format to correct number of decimal places", () => {
it("should format to correct number of decimal places", () => {
expect(formatNumber(0.1)).toEqual("0.1");
expect(formatNumber(0.11)).toEqual("0.11");
expect(formatNumber(0.111)).toEqual("0.11");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment