mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
✅ Fix carousel test case
This commit is contained in:
parent
d07b298ae4
commit
d45d494a4b
@ -87,7 +87,6 @@ describe('Carousel', () => {
|
|||||||
<div />
|
<div />
|
||||||
</Carousel>,
|
</Carousel>,
|
||||||
);
|
);
|
||||||
jest.runAllTimers();
|
|
||||||
expect(wrapper.render()).toMatchSnapshot();
|
expect(wrapper.render()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -122,6 +121,7 @@ describe('Carousel', () => {
|
|||||||
children: [<div key="1" />, <div key="2" />, <div key="3" />],
|
children: [<div key="1" />, <div key="2" />, <div key="3" />],
|
||||||
});
|
});
|
||||||
wrapper.update();
|
wrapper.update();
|
||||||
|
jest.runAllTimers();
|
||||||
expect(
|
expect(
|
||||||
wrapper
|
wrapper
|
||||||
.find('.slick-dots li')
|
.find('.slick-dots li')
|
||||||
|
Loading…
Reference in New Issue
Block a user