|
|
@ -115,7 +115,7 @@ describe('Badge', () => { |
|
|
|
// https://github.com/ant-design/ant-design/issues/21331
|
|
|
|
it('render Badge status/color when contains children', () => { |
|
|
|
const wrapper = render( |
|
|
|
<> |
|
|
|
<div> |
|
|
|
<Badge count={5} status="success"> |
|
|
|
<a /> |
|
|
|
</Badge> |
|
|
@ -125,7 +125,7 @@ describe('Badge', () => { |
|
|
|
<Badge count={5} color="#08c"> |
|
|
|
<a /> |
|
|
|
</Badge> |
|
|
|
</>, |
|
|
|
</div>, |
|
|
|
); |
|
|
|
expect(wrapper).toMatchSnapshot(); |
|
|
|
}) |
|
|
|