fix Badge test in React 15

This commit is contained in:
afc163 2020-02-14 12:28:45 +08:00
parent 831f0fcb5e
commit b22ef2280c
2 changed files with 7 additions and 7 deletions

View File

@ -70,7 +70,7 @@ exports[`Badge badge should support float number 2`] = `
`;
exports[`Badge render Badge status/color when contains children 1`] = `
Array [
<div>
<span
class="ant-badge ant-badge-status"
>
@ -80,7 +80,7 @@ Array [
data-show="true"
title="5"
/>
</span>,
</span>
<span
class="ant-badge ant-badge-status"
>
@ -90,7 +90,7 @@ Array [
data-show="true"
title="5"
/>
</span>,
</span>
<span
class="ant-badge ant-badge-status"
>
@ -101,8 +101,8 @@ Array [
style="background:#08c"
title="5"
/>
</span>,
]
</span>
</div>
`;
exports[`Badge render correct with negative number 1`] = `

View File

@ -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();
})