Skip to content

Commit

Permalink
test: fix test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
shaodahong committed Aug 16, 2019
1 parent 3b692bc commit ebdbd0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/back-top/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ describe('BackTop', () => {
window.scrollTo(0, 400);
// trigger scroll manually
wrapper.instance().handleScroll();
await sleep();
wrapper.find('.ant-back-top').simulate('click');
await sleep(500);
expect(window.pageYOffset).toBe(0);
Expand Down

0 comments on commit ebdbd0e

Please sign in to comment.