From c2319f099886b1eb1ef2a9498d3bd0c841fcaeae Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 10 Aug 2018 00:11:12 +0800 Subject: [PATCH] fix test fails a lot --- components/anchor/__tests__/Anchor.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/anchor/__tests__/Anchor.test.js b/components/anchor/__tests__/Anchor.test.js index 2fe66a76f0..3a1a324bf1 100644 --- a/components/anchor/__tests__/Anchor.test.js +++ b/components/anchor/__tests__/Anchor.test.js @@ -65,7 +65,7 @@ describe('Anchor Render', () => { await new Promise(resolve => setTimeout(resolve, 50)); expect(scrollToSpy).toHaveBeenCalled(); expect(wrapper.instance().animating).toBe(true); - await new Promise(resolve => setTimeout(resolve, 500)); + await new Promise(resolve => setTimeout(resolve, 1000)); expect(wrapper.instance().animating).toBe(false); });