Fix all broken CIs (#7439)
Fix all the broken CIs :p This includes an ongoing effort to simplify test maintenance by having 1 unique source of truth about metadata and data mocks (that will later be generated from a unique source of seeds: dev = demo = test) Regressions: - Unit line coverage: 60 > 55 - Storybook Pages branch coverage: 40 > 35 We will need to write tests to increase those coverage - RelationFieldDisplay perf: 0.2ms to 0.22ms > We might have a regression here - Removed perf story about RawJSON > We will need to re-add it
This commit is contained in:
committed by
Charles Bochet
parent
bd305c8432
commit
d8c4af9279
@ -6,12 +6,15 @@ describe('formatNumber', () => {
|
||||
expect(formatNumber(123)).toEqual('123');
|
||||
});
|
||||
it(`Should format decimal numbers correctly`, () => {
|
||||
expect(formatNumber(123.92)).toEqual('123.92');
|
||||
expect(formatNumber(123.92, 2)).toEqual('123.92');
|
||||
});
|
||||
it(`Should format large numbers correctly`, () => {
|
||||
expect(formatNumber(1234567)).toEqual('1,234,567');
|
||||
});
|
||||
it(`Should format large numbers with a decimal point correctly`, () => {
|
||||
expect(formatNumber(7654321.89)).toEqual('7,654,321.89');
|
||||
expect(formatNumber(7654321.89, 2)).toEqual('7,654,321.89');
|
||||
});
|
||||
it('should format apply decimals correctly', () => {
|
||||
expect(formatNumber(123.456, 2)).toEqual('123.46');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user