Skip to content

Commit

Permalink
chore: remove commented out code in Badge component test
Browse files Browse the repository at this point in the history
  • Loading branch information
adaex committed Feb 28, 2024
1 parent ce9731d commit c007e87
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions packages/arcodesign/components/badge/__test__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,6 @@ demoTest('badge');
mountTest(Badge, 'Badge');

describe('Badge', () => {
// it('Render different types', () => {
// const wrapper = mount(<Badge absolute dot />);
// expect(wrapper.find(`.${prefix}.dot.absolute`).length).toBe(1);
// const wrapper1 = mount(<Badge absolute text="12" />);
// expect(wrapper1.find('.badge-text').length).toBe(1);
// expect(wrapper1.text()).toEqual('12');
// const wrapper2 = mount(<Badge absolute text="100" />);
// expect(wrapper2.find('.badge-text').length).toBe(1);
// expect(wrapper2.text()).toEqual('99+');
// const wrapper3 = mount(<Badge absolute text="新" />);
// expect(wrapper3.find('.badge-text').length).toBe(1);
// expect(wrapper3.text()).toEqual('新');
// const wrapper4 = mount(
// <Badge absolute>
// <IconStarFill />
// </Badge>,
// );
// expect(wrapper4.find('svg').length).toBe(1);
// });

it('Render different types', () => {
const { container: container1 } = render(<Badge absolute dot />);
expect(container1.querySelectorAll(`.${prefix}.dot.absolute`).length).toBe(1);
Expand Down

0 comments on commit c007e87

Please sign in to comment.