We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 220ddc3 commit 673f532Copy full SHA for 673f532
tests/decimal.test.tsx
@@ -65,7 +65,12 @@ describe('InputNumber.Decimal', () => {
65
});
66
67
it('should not crash when scientific notation precision exceeds native toFixed limit', () => {
68
- expect(() => render(<InputNumber defaultValue={1e-307} />)).not.toThrow();
+ const expectedValue = `0.${'0'.repeat(306)}1`;
69
+
70
+ expect(() => {
71
+ const { container } = render(<InputNumber defaultValue={1e-307} />);
72
+ expect(container.querySelector('input').value).toEqual(expectedValue);
73
+ }).not.toThrow();
74
75
76
it('custom decimal separator', () => {
0 commit comments