test: update typography test

pull/5026/head
tangjinzhou 3 years ago
parent b9ff4eabcc
commit 4204ff0736

@ -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();

Loading…
Cancel
Save