test: update typography test

pull/5026/head
tangjinzhou 2021-12-12 16:49:31 +08:00
parent b9ff4eabcc
commit 4204ff0736
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ describe('Typography', () => {
expect(onEllipsis).toHaveBeenCalledWith(true);
onEllipsis.mockReset();
wrapper.setProps({ ellipsis: { rows: 2, onEllipsis } });
await sleep(100);
await sleep(300);
expect(wrapper.text()).toEqual('Bamboo is Little Light Bamboo is Litt...');
expect(onEllipsis).not.toHaveBeenCalled();