mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
chore: add useWatch test placeholder
This commit is contained in:
parent
6a08a46ecc
commit
c85d9889ab
@ -85,4 +85,16 @@ describe('Form.typescript', () => {
|
||||
|
||||
expect(Demo).toBeTruthy();
|
||||
});
|
||||
|
||||
// TODO: @crazyair fix for value types
|
||||
it('useWatch', () => {
|
||||
const Demo = () => {
|
||||
const [form] = Form.useForm<FormValues>();
|
||||
const value = Form.useWatch('username', form);
|
||||
|
||||
return <Form form={form}>{value}</Form>;
|
||||
};
|
||||
|
||||
expect(Demo).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user