Browse Source

fix test fails a lot

pull/11701/head
afc163 6 years ago
parent
commit
c2319f0998
  1. 2
      components/anchor/__tests__/Anchor.test.js

2
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);
});

Loading…
Cancel
Save