From 19c74b3cde593bc20a4241023b216f814f446fe0 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 21 Apr 2022 10:53:29 +0800 Subject: [PATCH] test: add test case for button loading state Signed-off-by: Ryan Wang --- src/components/base/button/Button.vue | 20 +++++-- .../base/button/__tests__/Button.spec.ts | 57 +++++++++++++++++++ .../__snapshots__/Button.spec.ts.snap | 40 ++++++------- 3 files changed, 91 insertions(+), 26 deletions(-) diff --git a/src/components/base/button/Button.vue b/src/components/base/button/Button.vue index 112bbde4..5e225e2b 100644 --- a/src/components/base/button/Button.vue +++ b/src/components/base/button/Button.vue @@ -1,17 +1,21 @@