From d45d494a4bb7d241dc77a825f7b094376c2dd74d Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 11 Aug 2019 18:51:52 +0800 Subject: [PATCH] :white_check_mark: Fix carousel test case --- components/carousel/__tests__/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/carousel/__tests__/index.test.js b/components/carousel/__tests__/index.test.js index 85d4726854..cd902a48d7 100644 --- a/components/carousel/__tests__/index.test.js +++ b/components/carousel/__tests__/index.test.js @@ -87,7 +87,6 @@ describe('Carousel', () => {
, ); - jest.runAllTimers(); expect(wrapper.render()).toMatchSnapshot(); }); }); @@ -122,6 +121,7 @@ describe('Carousel', () => { children: [
,
,
], }); wrapper.update(); + jest.runAllTimers(); expect( wrapper .find('.slick-dots li')