From b22ef2280c3013b6452dc30ee6251ab9eeb0035b Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 14 Feb 2020 12:28:45 +0800 Subject: [PATCH] :white_check_mark: fix Badge test in React 15 --- .../badge/__tests__/__snapshots__/index.test.js.snap | 10 +++++----- components/badge/__tests__/index.test.js | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/badge/__tests__/__snapshots__/index.test.js.snap b/components/badge/__tests__/__snapshots__/index.test.js.snap index e72f4c8a5e..dd2d55ef57 100644 --- a/components/badge/__tests__/__snapshots__/index.test.js.snap +++ b/components/badge/__tests__/__snapshots__/index.test.js.snap @@ -70,7 +70,7 @@ exports[`Badge badge should support float number 2`] = ` `; exports[`Badge render Badge status/color when contains children 1`] = ` -Array [ +
@@ -80,7 +80,7 @@ Array [ data-show="true" title="5" /> - , + @@ -90,7 +90,7 @@ Array [ data-show="true" title="5" /> - , + @@ -101,8 +101,8 @@ Array [ style="background:#08c" title="5" /> - , -] + +
`; exports[`Badge render correct with negative number 1`] = ` diff --git a/components/badge/__tests__/index.test.js b/components/badge/__tests__/index.test.js index a0c389cca4..3cc1acff44 100644 --- a/components/badge/__tests__/index.test.js +++ b/components/badge/__tests__/index.test.js @@ -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( - <> +
@@ -125,7 +125,7 @@ describe('Badge', () => { - , +
, ); expect(wrapper).toMatchSnapshot(); })