ant-design/components/input-number/__tests__/demo.test.tsx
MadCcc 2cff1fce48
fix: InputNumber should respect padding token (#46878)
* fix: inputnumber padding token

* chore: update

* chore: clean

* chore: update
2024-01-10 11:57:58 +08:00

18 lines
461 B
TypeScript

import * as React from 'react';
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
demoTest('input-number', {
skip: ['debug-token.tsx'],
});
rootPropsTest(
'input-number',
(InputNumber, props) => <InputNumber {...props} addonBefore="Bamboo" />,
{
name: 'input-number.addonBefore',
},
);
rootPropsTest('input-number', (InputNumber, props) => <InputNumber {...props} prefix="Bamboo" />, {
name: 'input-number.prefix',
});