Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Oct 23, 2020
1 parent f1fec0f commit 888860b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions components/typography/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,14 @@ describe('Typography', () => {

await sleep(20);
wrapper.update();
expect(wrapper.find('span:not(.anticon)').text()).toEqual('Bamboo is Little ...');
expect(wrapper.text()).toEqual('Bamboo is Little ...');
expect(onEllipsis).toHaveBeenCalledWith(true);
onEllipsis.mockReset();

wrapper.setProps({ ellipsis: { rows: 2, onEllipsis } });
await sleep(20);
wrapper.update();
expect(wrapper.find('span:not(.anticon)').text()).toEqual(
'Bamboo is Little Light Bamboo is Litt...',
);
expect(wrapper.text()).toEqual('Bamboo is Little Light Bamboo is Litt...');
expect(onEllipsis).not.toHaveBeenCalled();

wrapper.setProps({ ellipsis: { rows: 99, onEllipsis } });
Expand Down Expand Up @@ -161,7 +159,7 @@ describe('Typography', () => {
await sleep(20);
wrapper.update();

expect(wrapper.find('span:not(.anticon)').text()).toEqual('Bamboo is Little...');
expect(wrapper.text()).toEqual('Bamboo is Little...');
});

it('should expandable work', async () => {
Expand Down

0 comments on commit 888860b

Please sign in to comment.