diff --git a/components/typography/__tests__/index.test.js b/components/typography/__tests__/index.test.js index 98333f58a0..0a6cf51fdf 100644 --- a/components/typography/__tests__/index.test.js +++ b/components/typography/__tests__/index.test.js @@ -191,9 +191,9 @@ describe('Typography', () => { {fullStr} , ); - await sleep(20); wrapper.update(); + expect(wrapper.find('.ant-typography-expand').text()).toEqual('more'); }); it('can use css ellipsis', () => {