mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
test: ignore code which never run into
This commit is contained in:
parent
3d9c4cf971
commit
05e05c59f6
@ -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', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user