From f6db213aa422121155ab32b962616fe44dbc3be8 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sun, 8 Nov 2020 20:12:52 +0800 Subject: [PATCH] test(Button): update test cases --- .../test/__snapshots__/index.legacy.js.snap | 29 ----- .../test/__snapshots__/index.spec.js.snap | 30 ++++- src/button/test/index.legacy.js | 118 ------------------ src/button/test/index.spec.js | 80 +++++++++++- 4 files changed, 103 insertions(+), 154 deletions(-) delete mode 100644 src/button/test/__snapshots__/index.legacy.js.snap delete mode 100644 src/button/test/index.legacy.js diff --git a/src/button/test/__snapshots__/index.legacy.js.snap b/src/button/test/__snapshots__/index.legacy.js.snap deleted file mode 100644 index 09bd1be32..000000000 --- a/src/button/test/__snapshots__/index.legacy.js.snap +++ /dev/null @@ -1,29 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`icon-position prop 1`] = ` - -`; - -exports[`icon-prefix prop 1`] = ` - -`; - -exports[`loading slot 1`] = ` - -`; - -exports[`loading-size prop 1`] = ` - -`; diff --git a/src/button/test/__snapshots__/index.spec.js.snap b/src/button/test/__snapshots__/index.spec.js.snap index dabe4aff8..69f026d5e 100644 --- a/src/button/test/__snapshots__/index.spec.js.snap +++ b/src/button/test/__snapshots__/index.spec.js.snap @@ -1,11 +1,31 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`loading-size prop 1`] = ` - +`; + +exports[`should render icon in the right side when setting icon-position to right 1`] = ` + +`; + +exports[`should render loading slot and match snapshot 1`] = ` +