test: ignore code which never run into

This commit is contained in:
afc163 2020-09-16 16:00:12 +08:00 committed by zombiej
parent 3d9c4cf971
commit 05e05c59f6

View File

@ -186,16 +186,10 @@ describe('Typography', () => {
it('should have custom expand style', async () => {
const symbol = 'more';
const wrapper = mount(
<Base ellipsis={{ expandable: true, symbol }} component="p">
{fullStr}
</Base>,
);
const wrapper = mount(<Base ellipsis={{ expandable: true, symbol }} component="p"></Base>);
await sleep(20);
wrapper.update();
expect(wrapper.find('.ant-typography-expand').text()).toEqual('more');
});
it('can use css ellipsis', () => {