Fix carousel test case

This commit is contained in:
afc163 2019-08-11 18:51:52 +08:00
parent d07b298ae4
commit d45d494a4b

View File

@ -87,7 +87,6 @@ describe('Carousel', () => {
<div />
</Carousel>,
);
jest.runAllTimers();
expect(wrapper.render()).toMatchSnapshot();
});
});
@ -122,6 +121,7 @@ describe('Carousel', () => {
children: [<div key="1" />, <div key="2" />, <div key="3" />],
});
wrapper.update();
jest.runAllTimers();
expect(
wrapper
.find('.slick-dots li')