mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:25:15 +00:00
test: input number separator test (#4204)
This commit is contained in:
parent
fb41cce7b1
commit
132f626fa3
@ -89,6 +89,15 @@ describe('ReadPretty:formatNumberWithSeparator', () => {
|
||||
const formatted = formatNumberWithSeparator(1234567.89, '0,0.00', 1);
|
||||
expect(formatted).toBe('1,234,567.9');
|
||||
});
|
||||
|
||||
test('Format number with custom 0 0,00 separator', () => {
|
||||
const formatted = formatNumberWithSeparator(1234567.89, '0 0,00', 1);
|
||||
expect(formatted).toBe('1 234 567.9');
|
||||
});
|
||||
test('Format number with custom 0.00 separator', () => {
|
||||
const formatted = formatNumberWithSeparator(1234567.89, '0.00', 1);
|
||||
expect(formatted).toBe('1234567.9');
|
||||
});
|
||||
});
|
||||
describe('ReadPretty:formatUnitConversion', () => {
|
||||
// Test case 1: Multiply a value by 2
|
||||
|
Loading…
Reference in New Issue
Block a user