From bbd979f7ff8f40e6fcf67a8ea0bc6a60c008e8f5 Mon Sep 17 00:00:00 2001 From: kanweiwei <475801900@qq.com> Date: Sun, 1 Sep 2019 12:51:40 +0800 Subject: [PATCH] update test --- .../__snapshots__/index.test.js.snap | 25 +++++++++++++------ components/icon/__tests__/index.test.js | 2 +- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/components/icon/__tests__/__snapshots__/index.test.js.snap b/components/icon/__tests__/__snapshots__/index.test.js.snap index 131df98113..0b2c70850d 100644 --- a/components/icon/__tests__/__snapshots__/index.test.js.snap +++ b/components/icon/__tests__/__snapshots__/index.test.js.snap @@ -12,12 +12,20 @@ exports[`Icon \`component\` prop can access to svg defs if has children 1`] = ` height="1em" width="1em" > - - Cool Home - - + + + + + + `; @@ -298,13 +306,14 @@ exports[`Icon should support svg react component 1`] = ` fill="currentColor" focusable="false" height="1em" + viewBox="0 0 24 24" width="1em" > - Cool Home + Custom Svg diff --git a/components/icon/__tests__/index.test.js b/components/icon/__tests__/index.test.js index 90f2762eec..cd56970a58 100644 --- a/components/icon/__tests__/index.test.js +++ b/components/icon/__tests__/index.test.js @@ -162,7 +162,7 @@ describe('Icon', () => { it('should support svg react component', () => { const SvgComponent = props => ( - Cool Home + Custom Svg );