From f6084c4dcd3bbdba1c2fe52e8610b7331c402352 Mon Sep 17 00:00:00 2001 From: Summer-Shen <1563407190@qq.com> Date: Thu, 15 Feb 2024 00:41:59 +0800 Subject: [PATCH] test(calendar): refactor demo to show selected date in UTC, ensure consistent snapshot --- .../components/calendar/__demo__/basic.md | 13 +- .../__test__/__snapshots__/demo.test.ts.snap | 669 +++++++++--------- 2 files changed, 346 insertions(+), 336 deletions(-) diff --git a/packages/web-vue/components/calendar/__demo__/basic.md b/packages/web-vue/components/calendar/__demo__/basic.md index 3e091169e..1f9924069 100644 --- a/packages/web-vue/components/calendar/__demo__/basic.md +++ b/packages/web-vue/components/calendar/__demo__/basic.md @@ -17,10 +17,11 @@ Display and select calendars --- ```vue - ``` diff --git a/packages/web-vue/components/calendar/__test__/__snapshots__/demo.test.ts.snap b/packages/web-vue/components/calendar/__test__/__snapshots__/demo.test.ts.snap index f32dd12ba..6f40ec759 100644 --- a/packages/web-vue/components/calendar/__test__/__snapshots__/demo.test.ts.snap +++ b/packages/web-vue/components/calendar/__test__/__snapshots__/demo.test.ts.snap @@ -1,343 +1,352 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` demo: render [basic] correctly 1`] = ` -"
-
-
-
- -
-
2023 年 01 月
-
- -
-
-
-
-
-
-
-
周日
-
周一
-
周二
-
周三
-
周四
-
周五
-
周六
-
-
-
-
-
-
-
1
-
-
-
-
-
-
-
2
-
-
-
-
-
-
-
3
-
-
-
-
-
-
-
4
-
-
-
-
-
-
-
5
-
-
-
-
-
-
-
6
-
-
-
-
-
-
-
7
-
-
-
-
-
-
-
-
-
8
-
-
-
-
-
-
-
9
-
-
-
-
-
-
-
10
-
-
-
-
-
-
-
11
-
-
-
-
-
-
-
12
-
-
-
-
-
-
-
13
-
-
-
-
-
-
-
14
-
-
-
-
-
-
-
-
-
15
-
-
-
-
-
-
-
16
-
-
-
-
-
-
-
17
-
-
-
-
-
-
-
18
-
-
-
-
-
-
-
19
-
-
-
-
-
-
-
20
-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+
+
+
+
+
+
5
+
+
+
+
+
+
+
6
+
+
+
+
+
+
+
7
+
+
+
+
+
+
+
8
+
+
+
+
+
+
+
9
+
+
+
+
+
+
+
10
+
+
+
+
+
+
+
11
+
+
+ +
- -
select: Sun Jan 01 2023 08:00:00 GMT+0800 (China Standard Time)" +
+
Selected date in UTC: 2023-01-01T00:00:00.000Z
+
+
" `;