Skip to content

Commit

Permalink
test(Icon): fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
lakerswgq committed Jun 29, 2022
1 parent 70c5dfa commit 75fb27f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/icon/index-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,13 @@ describe('Icon', () => {
scriptUrl: '//at.alicdn.com/t/font_1464085_egnk4s8yv2f.js',
});

const newWrapper = mount( <ConfigProvider prefix="abcd-">
let newWrapper = mount( <ConfigProvider prefix="abcd-">
<CustomIcon type="icon-pic" prefix="efg-"/>
</ConfigProvider>);
assert(newWrapper.find('.abcd-icon > svg'));
assert(newWrapper.find('.abcd-icon > efg-icon-remote'));

newWrapper.unmount();
newWrapper = null;
});
});

0 comments on commit 75fb27f

Please sign in to comment.