mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-15 14:31:09 +08:00
fix test case
This commit is contained in:
parent
358c7fa4c4
commit
b696579cd4
@ -194,7 +194,7 @@ describe('Form.List', () => {
|
|||||||
async function addItem() {
|
async function addItem() {
|
||||||
await act(async () => {
|
await act(async () => {
|
||||||
operation.add();
|
operation.add();
|
||||||
await sleep();
|
await sleep(100);
|
||||||
jest.runAllTimers();
|
jest.runAllTimers();
|
||||||
wrapper.update();
|
wrapper.update();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user