From 7bf21fe51fb9aeaf1fc32c6082ff97d043994dd2 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 15 May 2018 09:52:44 +0800 Subject: [PATCH] test: add snapshot --- .../__tests__/__snapshots__/demo.test.js.snap | 1658 ++++++++++ components/calendar/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 266 ++ components/card/__tests__/demo.test.js | 3 + components/card/demo/tabsCard.md | 1 - .../__tests__/__snapshots__/demo.test.js.snap | 85 + components/cascader/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 93 + components/checkbox/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 146 + components/collapse/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 136 + components/date-picker/__tests__/demo.test.js | 3 + components/date-picker/demo/date-render.md | 18 +- .../__tests__/__snapshots__/demo.test.js.snap | 32 + components/divider/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 83 + components/dropdown/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 233 ++ components/grid/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 94 + .../input-number/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 118 + components/input/__tests__/demo.test.js | 3 + components/input/demo/presuffix.md | 9 +- .../__tests__/__snapshots__/demo.test.js.snap | 389 +++ components/layout/__tests__/demo.test.js | 3 + components/layout/demo/fixed-sider.md | 4 +- components/layout/demo/fixed.md | 5 +- components/layout/demo/top-side-2.md | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 448 +++ .../locale-provider/__tests__/demo.test.js | 3 + components/locale-provider/demo/all.md | 8 +- components/locale-provider/demo/basic.md | 4 +- components/locale-provider/index.en-US.md | 2 +- components/locale-provider/index.zh-CN.md | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 237 ++ components/menu/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 15 + components/message/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 63 + components/modal/__tests__/demo.test.js | 3 + components/modal/demo/info.md | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 32 + .../notification/__tests__/demo.test.js | 3 + components/notification/demo/placement.md | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 440 +++ components/pagination/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 40 + components/popconfirm/__tests__/demo.test.js | 3 + components/popconfirm/demo/basic.md | 5 +- components/popconfirm/demo/dynamic-trigger.md | 2 +- components/popconfirm/demo/placement.md | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 45 + components/popover/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 257 ++ components/progress/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 123 + components/radio/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 323 ++ components/rate/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 250 ++ components/select/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 224 ++ components/slider/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 72 + components/spin/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 287 ++ components/steps/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 32 + components/switch/__tests__/demo.test.js | 3 + components/switch/demo/disabled.md | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 2938 +++++++++++++++++ components/table/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 360 ++ components/tabs/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 82 + components/tag/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 38 + components/time-picker/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 116 + components/timeline/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 47 + components/tooltip/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 216 ++ components/transfer/__tests__/demo.test.js | 3 + .../__tests__/__snapshots__/demo.test.js.snap | 188 ++ components/tree/__tests__/demo.test.js | 3 + components/trigger/demo/simple.vue | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 107 + components/upload/__tests__/demo.test.js | 3 + components/vc-form/demo/modal.js | 2 +- components/vc-form/demo/overview.js | 2 +- components/vc-form/demo/parallel-form.js | 2 +- components/vc-form/demo/start-end-date.js | 2 +- components/vc-form/demo/suggest.js | 2 +- 96 files changed, 10466 insertions(+), 42 deletions(-) create mode 100644 components/calendar/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/calendar/__tests__/demo.test.js create mode 100644 components/card/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/card/__tests__/demo.test.js create mode 100644 components/cascader/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/cascader/__tests__/demo.test.js create mode 100644 components/checkbox/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/checkbox/__tests__/demo.test.js create mode 100644 components/collapse/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/collapse/__tests__/demo.test.js create mode 100644 components/date-picker/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/date-picker/__tests__/demo.test.js create mode 100644 components/divider/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/divider/__tests__/demo.test.js create mode 100644 components/dropdown/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/dropdown/__tests__/demo.test.js create mode 100644 components/grid/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/grid/__tests__/demo.test.js create mode 100644 components/input-number/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/input-number/__tests__/demo.test.js create mode 100644 components/input/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/input/__tests__/demo.test.js create mode 100644 components/layout/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/layout/__tests__/demo.test.js create mode 100644 components/locale-provider/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/locale-provider/__tests__/demo.test.js create mode 100644 components/menu/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/menu/__tests__/demo.test.js create mode 100644 components/message/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/message/__tests__/demo.test.js create mode 100644 components/modal/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/modal/__tests__/demo.test.js create mode 100644 components/notification/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/notification/__tests__/demo.test.js create mode 100644 components/pagination/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/pagination/__tests__/demo.test.js create mode 100644 components/popconfirm/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/popconfirm/__tests__/demo.test.js create mode 100644 components/popover/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/popover/__tests__/demo.test.js create mode 100644 components/progress/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/progress/__tests__/demo.test.js create mode 100644 components/radio/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/radio/__tests__/demo.test.js create mode 100644 components/rate/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/rate/__tests__/demo.test.js create mode 100644 components/select/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/select/__tests__/demo.test.js create mode 100644 components/slider/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/slider/__tests__/demo.test.js create mode 100644 components/spin/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/spin/__tests__/demo.test.js create mode 100644 components/steps/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/steps/__tests__/demo.test.js create mode 100644 components/switch/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/switch/__tests__/demo.test.js create mode 100644 components/table/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/table/__tests__/demo.test.js create mode 100644 components/tabs/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/tabs/__tests__/demo.test.js create mode 100644 components/tag/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/tag/__tests__/demo.test.js create mode 100644 components/time-picker/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/time-picker/__tests__/demo.test.js create mode 100644 components/timeline/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/timeline/__tests__/demo.test.js create mode 100644 components/tooltip/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/tooltip/__tests__/demo.test.js create mode 100644 components/transfer/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/transfer/__tests__/demo.test.js create mode 100644 components/tree/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/tree/__tests__/demo.test.js create mode 100644 components/upload/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/upload/__tests__/demo.test.js diff --git a/components/calendar/__tests__/__snapshots__/demo.test.js.snap b/components/calendar/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..46891212f --- /dev/null +++ b/components/calendar/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,1658 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/calendar/demo/basic.md correctly 1`] = ` +
Su | +Mo | +Tu | +We | +Th | +Fr | +Sa | +
---|---|---|---|---|---|---|
+
+
+ 30
+
+ |
+
+
+
+ 31
+
+ |
+
+
+
+ 01
+
+ |
+
+
+
+ 02
+
+ |
+
+
+
+ 03
+
+ |
+
+
+
+ 04
+
+ |
+
+
+
+ 05
+
+ |
+
+
+
+ 06
+
+ |
+
+
+
+ 07
+
+ |
+
+
+
+ 08
+
+ |
+
+
+
+ 09
+
+ |
+
+
+
+ 10
+
+ |
+
+
+
+ 11
+
+ |
+
+
+
+ 12
+
+ |
+
+
+
+ 13
+
+ |
+
+
+
+ 14
+
+ |
+
+
+
+ 15
+
+ |
+
+
+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+
+
+
+ 15
+
+ |
+
+
+
+ 16
+
+ |
+
+
+
+ 17
+
+ |
+
+
+
+ 18
+
+ |
+
+
+
+ 19
+
+ |
+
+
+
+ 20
+
+ |
+
+
+
+ 21
+
+ |
+
+
+
+ 22
+
+ |
+
+
+
+ 23
+
+ |
+
+
+
+ 24
+
+ |
+
+
+
+ 25
+
+ |
+
+
+
+ 26
+
+ |
+
+
+
+ 27
+
+ |
+
+
+
+ 28
+
+ |
+
+
+
+ 29
+
+ |
+
+
+
+ 30
+
+ |
+
+
+
+ 31
+
+ |
+
+
+
+ 01
+
+ |
+
+
+
+ 02
+
+ |
+
+
+
+ 03
+
+ |
+
+
+
+ 04
+
+ |
+
+
+
+ 05
+
+ |
+
+
+
+ 06
+
+ |
+
+
+
+ 07
+
+ |
+
+
+
+ 08
+
+ |
+
+
+
+ 09
+
+ |
+
+
+
+ 10
+
+ |
+
+
+
+ 11
+
+ |
+
card content
+card content
+card content
+card content
+card content
+card content
+Card content
+Card content
+Card content
++
+
+
+
Card content
+Card content
+Card content
+app content
++ +
++ + +
+A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.
+A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.
+A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+ +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+ +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+sub-element align left
+sub-element align center
+sub-element align right
+sub-element monospaced arrangement
+sub-element align full
+Align Top
+col-4
+col-4
+col-4
+col-4
+Align Center
+col-4
+col-4
+col-4
+col-4
+Align Bottom
+col-4
+col-4
+col-4
+col-4
+<Row :gutter="16"> + <Col :span="6"/> + <Col :span="6"/> + <Col :span="6"/> + <Col :span="6"/> +</Row>