From 050867348e4cb5cc3da2ed4ee531d7bc61f26eca Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Fri, 14 Aug 2020 17:04:45 +0800 Subject: [PATCH] test: update test --- .../__tests__/__snapshots__/demo.test.js.snap | 314 +++++++++++++++++ components/form/__tests__/demo.test.js | 2 +- components/list/__tests__/demo.test.js | 2 +- .../__snapshots__/index.test.js.snap | 328 ++++++++++-------- .../locale-provider/__tests__/index.test.js | 6 +- components/mentions/__tests__/index.test.js | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- .../__snapshots__/index.test.js.snap | 36 +- .../__tests__/__snapshots__/list.test.js.snap | 14 +- components/transfer/__tests__/index.test.js | 28 +- components/transfer/__tests__/list.test.js | 8 +- components/transfer/__tests__/search.test.js | 34 +- .../upload/__tests__/uploadlist.test.js | 10 +- examples/App.vue | 3 +- 14 files changed, 560 insertions(+), 231 deletions(-) create mode 100644 components/form/__tests__/__snapshots__/demo.test.js.snap diff --git a/components/form/__tests__/__snapshots__/demo.test.js.snap b/components/form/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..13a173f28 --- /dev/null +++ b/components/form/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,314 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./antdv-demo/docs/form/demo/basic.md correctly 1`] = ` +
+`; + +exports[`renders ./antdv-demo/docs/form/demo/custom-validation.md correctly 1`] = ` + +`; + +exports[`renders ./antdv-demo/docs/form/demo/dynamic-form-item.md correctly 1`] = ` + +`; + +exports[`renders ./antdv-demo/docs/form/demo/horizontal-login.md correctly 1`] = ` + +`; + +exports[`renders ./antdv-demo/docs/form/demo/layout.md correctly 1`] = ` + +`; + +exports[`renders ./antdv-demo/docs/form/demo/validation.md correctly 1`] = ` + +`; diff --git a/components/form/__tests__/demo.test.js b/components/form/__tests__/demo.test.js index 22a74f8a8..0247d5d30 100644 --- a/components/form/__tests__/demo.test.js +++ b/components/form/__tests__/demo.test.js @@ -1,3 +1,3 @@ import demoTest from '../../../tests/shared/demoTest'; -demoTest('form-model'); +demoTest('form'); diff --git a/components/list/__tests__/demo.test.js b/components/list/__tests__/demo.test.js index 23839cad2..2e1f5541a 100644 --- a/components/list/__tests__/demo.test.js +++ b/components/list/__tests__/demo.test.js @@ -1,3 +1,3 @@ import demoTest from '../../../tests/shared/demoTest'; -demoTest('list', { skip: ['infinite-virtualized-load'] }); +demoTest('list', { skip: ['infinite-virtualized-load', 'infinite-load'] }); diff --git a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap index 3e518d604..3f92f940e 100644 --- a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap +++ b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap @@ -8,7 +8,7 @@ exports[`Locale Provider set moment locale when locale changes 1`] = `一 | -二 | -三 | -四 | -五 | -六 | -日 | + +lu | +ma | +me | +je | +ve | +sa | +di |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- 28
+
+ |
+ 28
|
-
- 29
+ |
+ 29
|
-
- 30
+ |
+ 30
|
-
- 31
+ |
+ 31
|
-
- 1
+ |
+ 1
|
-
- 2
+ |
+ 2
|
-
- 3
+ |
+ 3
|
- 4
+
+ |
+ 4
|
-
- 5
+ |
+ 5
|
-
- 6
+ |
+ 6
|
-
- 7
+ |
+ 7
|
-
- 8
+ |
+ 8
|
-
- 9
+ |
+ 9
|
-
- 10
+ |
+ 10
|
- 11
+
+ |
+ 11
|
-
- 12
+ |
+ 12
|
-
- 13
+ |
+ 13
|
-
- 14
+ |
+ 14
|
-
- 15
+ |
+ 15
|
-
- 16
+ |
+ 16
|
-
- 17
+ |
+ 17
|
- 18
+
+ |
+ 18
|
-
- 19
+ |
+ 19
|
-
- 20
+ |
+ 20
|
-
- 21
+ |
+ 21
|
-
- 22
+ |
+ 22
|
-
- 23
+ |
+ 23
|
-
- 24
+ |
+ 24
|
- 25
+
+ |
+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