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`] = ` +
+
+
+ +
+
+ +
+
+ + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SuMoTuWeThFrSa
+
+
30
+
+
+
+
+
31
+
+
+
+
+
01
+
+
+
+
+
02
+
+
+
+
+
03
+
+
+
+
+
04
+
+
+
+
+
05
+
+
+
+
+
06
+
+
+
+
+
07
+
+
+
+
+
08
+
+
+
+
+
09
+
+
+
+
+
10
+
+
+
+
+
11
+
+
+
+
+
12
+
+
+
+
+
13
+
+
+
+
+
14
+
+
+
+
+
15
+
+
+
+
+
16
+
+
+
+
+
17
+
+
+
+
+
18
+
+
+
+
+
19
+
+
+
+
+
20
+
+
+
+
+
21
+
+
+
+
+
22
+
+
+
+
+
23
+
+
+
+
+
24
+
+
+
+
+
25
+
+
+
+
+
26
+
+
+
+
+
27
+
+
+
+
+
28
+
+
+
+
+
29
+
+
+
+
+
30
+
+
+
+
+
01
+
+
+
+
+
02
+
+
+
+
+
03
+
+
+
+
+
04
+
+
+
+
+
05
+
+
+
+
+
06
+
+
+
+
+
07
+
+
+
+
+
08
+
+
+
+
+
09
+
+
+
+
+
10
+
+
+
+
+
+
+`; + +exports[`renders ./components/calendar/demo/card.md correctly 1`] = ` +
+
+
+
+ +
+
+ +
+
+ + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SuMoTuWeThFrSa
+
+
30
+
+
+
+
+
31
+
+
+
+
+
01
+
+
+
+
+
02
+
+
+
+
+
03
+
+
+
+
+
04
+
+
+
+
+
05
+
+
+
+
+
06
+
+
+
+
+
07
+
+
+
+
+
08
+
+
+
+
+
09
+
+
+
+
+
10
+
+
+
+
+
11
+
+
+
+
+
12
+
+
+
+
+
13
+
+
+
+
+
14
+
+
+
+
+
15
+
+
+
+
+
16
+
+
+
+
+
17
+
+
+
+
+
18
+
+
+
+
+
19
+
+
+
+
+
20
+
+
+
+
+
21
+
+
+
+
+
22
+
+
+
+
+
23
+
+
+
+
+
24
+
+
+
+
+
25
+
+
+
+
+
26
+
+
+
+
+
27
+
+
+
+
+
28
+
+
+
+
+
29
+
+
+
+
+
30
+
+
+
+
+
01
+
+
+
+
+
02
+
+
+
+
+
03
+
+
+
+
+
04
+
+
+
+
+
05
+
+
+
+
+
06
+
+
+
+
+
07
+
+
+
+
+
08
+
+
+
+
+
09
+
+
+
+
+
10
+
+
+
+
+
+
+
+`; + +exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = ` +
+
+
+ +
+
+ +
+
+ + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SuMoTuWeThFrSa
+
+
30
+
+
    +
    +
    +
    +
    +
    31
    +
    +
      +
      +
      +
      +
      +
      01
      +
      +
        +
        +
        +
        +
        +
        02
        +
        +
          +
          +
          +
          +
          +
          03
          +
          +
            +
            +
            +
            +
            +
            04
            +
            +
              +
              +
              +
              +
              +
              05
              +
              +
                +
                +
                +
                +
                +
                06
                +
                +
                  +
                  +
                  +
                  +
                  +
                  07
                  +
                  +
                    +
                    +
                    +
                    +
                    +
                    08
                    +
                    +
                      +
                    • This is warning event. +
                    • +
                    • This is usual event. +
                    • +
                    +
                    +
                    +
                    +
                    +
                    09
                    +
                    +
                      +
                      +
                      +
                      +
                      +
                      10
                      +
                      +
                        +
                      • This is warning event. +
                      • +
                      • This is usual event. +
                      • +
                      • This is error event. +
                      • +
                      +
                      +
                      +
                      +
                      +
                      11
                      +
                      +
                        +
                        +
                        +
                        +
                        +
                        12
                        +
                        +
                          +
                          +
                          +
                          +
                          +
                          13
                          +
                          +
                            +
                            +
                            +
                            +
                            +
                            14
                            +
                            +
                              +
                              +
                              +
                              +
                              +
                              15
                              +
                              +
                                +
                              • This is warning event +
                              • +
                              • This is very long usual event。。.... +
                              • +
                              • This is error event 1. +
                              • +
                              • This is error event 2. +
                              • +
                              • This is error event 3. +
                              • +
                              • This is error event 4. +
                              • +
                              +
                              +
                              +
                              +
                              +
                              16
                              +
                              +
                                +
                                +
                                +
                                +
                                +
                                17
                                +
                                +
                                  +
                                  +
                                  +
                                  +
                                  +
                                  18
                                  +
                                  +
                                    +
                                    +
                                    +
                                    +
                                    +
                                    19
                                    +
                                    +
                                      +
                                      +
                                      +
                                      +
                                      +
                                      20
                                      +
                                      +
                                        +
                                        +
                                        +
                                        +
                                        +
                                        21
                                        +
                                        +
                                          +
                                          +
                                          +
                                          +
                                          +
                                          22
                                          +
                                          +
                                            +
                                            +
                                            +
                                            +
                                            +
                                            23
                                            +
                                            +
                                              +
                                              +
                                              +
                                              +
                                              +
                                              24
                                              +
                                              +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                25
                                                +
                                                +
                                                  +
                                                  +
                                                  +
                                                  +
                                                  +
                                                  26
                                                  +
                                                  +
                                                    +
                                                    +
                                                    +
                                                    +
                                                    +
                                                    27
                                                    +
                                                    +
                                                      +
                                                      +
                                                      +
                                                      +
                                                      +
                                                      28
                                                      +
                                                      +
                                                        +
                                                        +
                                                        +
                                                        +
                                                        +
                                                        29
                                                        +
                                                        +
                                                          +
                                                          +
                                                          +
                                                          +
                                                          +
                                                          30
                                                          +
                                                          +
                                                            +
                                                            +
                                                            +
                                                            +
                                                            +
                                                            01
                                                            +
                                                            +
                                                              +
                                                              +
                                                              +
                                                              +
                                                              +
                                                              02
                                                              +
                                                              +
                                                                +
                                                                +
                                                                +
                                                                +
                                                                +
                                                                03
                                                                +
                                                                +
                                                                  +
                                                                  +
                                                                  +
                                                                  +
                                                                  +
                                                                  04
                                                                  +
                                                                  +
                                                                    +
                                                                    +
                                                                    +
                                                                    +
                                                                    +
                                                                    05
                                                                    +
                                                                    +
                                                                      +
                                                                      +
                                                                      +
                                                                      +
                                                                      +
                                                                      06
                                                                      +
                                                                      +
                                                                        +
                                                                        +
                                                                        +
                                                                        +
                                                                        +
                                                                        07
                                                                        +
                                                                        +
                                                                          +
                                                                          +
                                                                          +
                                                                          +
                                                                          +
                                                                          08
                                                                          +
                                                                          +
                                                                            +
                                                                          • This is warning event. +
                                                                          • +
                                                                          • This is usual event. +
                                                                          • +
                                                                          +
                                                                          +
                                                                          +
                                                                          +
                                                                          +
                                                                          09
                                                                          +
                                                                          +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            10
                                                                            +
                                                                            +
                                                                              +
                                                                            • This is warning event. +
                                                                            • +
                                                                            • This is usual event. +
                                                                            • +
                                                                            • This is error event. +
                                                                            • +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/calendar/demo/select.md correctly 1`] = ` +
                                                                            +
                                                                            You selected date: 2017-01-25
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                            SuMoTuWeThFrSa
                                                                            +
                                                                            +
                                                                            01
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            02
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            03
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            04
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            05
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            06
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            07
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            08
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            09
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            10
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            11
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            12
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            13
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            14
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            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
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                            SuMoTuWeThFrSa
                                                                            +
                                                                            +
                                                                            01
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            02
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            03
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            04
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            05
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            06
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            07
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            08
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            09
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            10
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            11
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            12
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            13
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            14
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            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
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +`; diff --git a/components/calendar/__tests__/demo.test.js b/components/calendar/__tests__/demo.test.js new file mode 100644 index 000000000..c65973e49 --- /dev/null +++ b/components/calendar/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('calendar') diff --git a/components/card/__tests__/__snapshots__/demo.test.js.snap b/components/card/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..a91f98b19 --- /dev/null +++ b/components/card/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,266 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/card/demo/basic.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card Title
                                                                            +
                                                                            + more +
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            card content

                                                                            +

                                                                            card content

                                                                            +

                                                                            card content

                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/colRowCard.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            card content

                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            card content

                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            card content

                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/concise.md correctly 1`] = ` +
                                                                            +
                                                                            +

                                                                            Card content

                                                                            +

                                                                            Card content

                                                                            +

                                                                            Card content

                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/grid.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card Title
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/inline.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            Group title

                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Inner card title
                                                                            +
                                                                            + More +
                                                                            +
                                                                            +
                                                                            +
                                                                            + Inner Card content +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Inner card title
                                                                            +
                                                                            + More +
                                                                            +
                                                                            +
                                                                            +
                                                                            + Inner Card content +
                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/loading.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            +

                                                                            +

                                                                            +

                                                                            +

                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/moreConfigs.md correctly 1`] = ` +
                                                                            +
                                                                            + example +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            This is the description
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +`; + +exports[`renders ./components/card/demo/noBorder.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            Card content

                                                                            +

                                                                            Card content

                                                                            +

                                                                            Card content

                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/tabsCard.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            + More +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            + content1 +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            app content

                                                                            +
                                                                            +
                                                                            +
                                                                            +`; diff --git a/components/card/__tests__/demo.test.js b/components/card/__tests__/demo.test.js new file mode 100644 index 000000000..d15b047bc --- /dev/null +++ b/components/card/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('card') diff --git a/components/card/demo/tabsCard.md b/components/card/demo/tabsCard.md index 6192d5c3b..33b2beb29 100644 --- a/components/card/demo/tabsCard.md +++ b/components/card/demo/tabsCard.md @@ -10,7 +10,6 @@ ```html ``` diff --git a/components/divider/__tests__/__snapshots__/demo.test.js.snap b/components/divider/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..8329c432d --- /dev/null +++ b/components/divider/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,32 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/divider/demo/horizontal.md correctly 1`] = ` +
                                                                            +

                                                                            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.

                                                                            +
                                                                            With Text
                                                                            +

                                                                            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.

                                                                            +
                                                                            +`; + +exports[`renders ./components/divider/demo/orientation.md correctly 1`] = ` +
                                                                            +
                                                                            Left Text
                                                                            +

                                                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.

                                                                            +
                                                                            Right Text
                                                                            +

                                                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.

                                                                            +
                                                                            +`; + +exports[`renders ./components/divider/demo/vertical.md correctly 1`] = ` +
                                                                            + Text +
                                                                            + Link +
                                                                            + Link +
                                                                            +`; diff --git a/components/divider/__tests__/demo.test.js b/components/divider/__tests__/demo.test.js new file mode 100644 index 000000000..528e30bfd --- /dev/null +++ b/components/divider/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('divider') diff --git a/components/dropdown/__tests__/__snapshots__/demo.test.js.snap b/components/dropdown/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..30976bda4 --- /dev/null +++ b/components/dropdown/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,83 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/dropdown/demo/basic.md correctly 1`] = ` + + Hover me + + +`; + +exports[`renders ./components/dropdown/demo/context-menu.md correctly 1`] = `Right Click on Me`; + +exports[`renders ./components/dropdown/demo/dropdown-button.md correctly 1`] = ` +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            + + +
                                                                            + +
                                                                            +`; + +exports[`renders ./components/dropdown/demo/event.md correctly 1`] = ` + + Hover me, Click menu item + + +`; + +exports[`renders ./components/dropdown/demo/item.md correctly 1`] = ` + + Hover me + + +`; + +exports[`renders ./components/dropdown/demo/overlay-visible.md correctly 1`] = ` + + Hover me + + +`; + +exports[`renders ./components/dropdown/demo/placement.md correctly 1`] = ` +
                                                                            + + + + + +
                                                                            + + + + + + +
                                                                            +`; + +exports[`renders ./components/dropdown/demo/sub-menu.md correctly 1`] = ` + + Cascading menu + + +`; + +exports[`renders ./components/dropdown/demo/trigger.md correctly 1`] = ` + + Click me + + +`; diff --git a/components/dropdown/__tests__/demo.test.js b/components/dropdown/__tests__/demo.test.js new file mode 100644 index 000000000..b830f8fd4 --- /dev/null +++ b/components/dropdown/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('dropdown') diff --git a/components/grid/__tests__/__snapshots__/demo.test.js.snap b/components/grid/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..f66760867 --- /dev/null +++ b/components/grid/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,233 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/grid/demo/basic.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            col-12
                                                                            +
                                                                            col-12
                                                                            +
                                                                            +
                                                                            +
                                                                            col-8
                                                                            +
                                                                            col-8
                                                                            +
                                                                            col-8
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6
                                                                            +
                                                                            col-6
                                                                            +
                                                                            col-6
                                                                            +
                                                                            col-6
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/flex.md correctly 1`] = ` +
                                                                            +

                                                                            sub-element align left

                                                                            +
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            +

                                                                            sub-element align center

                                                                            +
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            +

                                                                            sub-element align right

                                                                            +
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            +

                                                                            sub-element monospaced arrangement

                                                                            +
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            +

                                                                            sub-element align full

                                                                            +
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/flex-align.md correctly 1`] = ` +
                                                                            +

                                                                            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

                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/flex-order.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            1 col-order-4
                                                                            +
                                                                            2 col-order-3
                                                                            +
                                                                            3 col-order-2
                                                                            +
                                                                            4 col-order-1
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/gutter.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6
                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/offset.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            col-8
                                                                            +
                                                                            col-8
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6 col-offset-6
                                                                            +
                                                                            col-6 col-offset-6
                                                                            +
                                                                            +
                                                                            +
                                                                            col-12 col-offset-6
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/playfround.md correctly 1`] = ` +
                                                                            +
                                                                            Gutter (px): +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            81624324048
                                                                            +
                                                                            +
                                                                            Column Count: +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            2346812
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Column
                                                                            +
                                                                            +
                                                                            +
                                                                            Column
                                                                            +
                                                                            +
                                                                            +
                                                                            Column
                                                                            +
                                                                            +
                                                                            +
                                                                            Column
                                                                            +
                                                                            +
                                                                            <Row :gutter="16">
                                                                            +  <Col :span="6"/>
                                                                            +  <Col :span="6"/>
                                                                            +  <Col :span="6"/>
                                                                            +  <Col :span="6"/>
                                                                            +</Row>
                                                                            +`; + +exports[`renders ./components/grid/demo/responsive.md correctly 1`] = ` +
                                                                            +
                                                                            Col
                                                                            +
                                                                            Col
                                                                            +
                                                                            Col
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/responsive-more.md correctly 1`] = ` +
                                                                            +
                                                                            Col
                                                                            +
                                                                            Col
                                                                            +
                                                                            Col
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/sort.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            col-18 col-push-6
                                                                            +
                                                                            col-6 col-pull-18
                                                                            +
                                                                            +
                                                                            +`; diff --git a/components/grid/__tests__/demo.test.js b/components/grid/__tests__/demo.test.js new file mode 100644 index 000000000..8e6005e4a --- /dev/null +++ b/components/grid/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('grid') diff --git a/components/input-number/__tests__/__snapshots__/demo.test.js.snap b/components/input-number/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..3e829f54f --- /dev/null +++ b/components/input-number/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,94 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/input-number/demo/basic.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + 当前值:3 +
                                                                            +`; + +exports[`renders ./components/input-number/demo/digit.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +`; + +exports[`renders ./components/input-number/demo/disabled.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +`; + +exports[`renders ./components/input-number/demo/formatter.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/input-number/demo/size.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +`; diff --git a/components/input-number/__tests__/demo.test.js b/components/input-number/__tests__/demo.test.js new file mode 100644 index 000000000..8bdef4983 --- /dev/null +++ b/components/input-number/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('input-number') diff --git a/components/input/__tests__/__snapshots__/demo.test.js.snap b/components/input/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..71af5aba3 --- /dev/null +++ b/components/input/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,118 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/input/demo/addon.md correctly 1`] = ` +
                                                                            +
                                                                            Http:// + .com + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +`; + +exports[`renders ./components/input/demo/autosize-textarea.md correctly 1`] = ` +
                                                                            + +
                                                                            + +
                                                                            +`; + +exports[`renders ./components/input/demo/basic.md correctly 1`] = ``; + +exports[`renders ./components/input/demo/group.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + + +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            +`; + +exports[`renders ./components/input/demo/presuffix.md correctly 1`] = ` +
                                                                            + + +
                                                                            +`; + +exports[`renders ./components/input/demo/search-input.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            + + +
                                                                            +`; + +exports[`renders ./components/input/demo/size.md correctly 1`] = ` +
                                                                            + + + +
                                                                            +`; + +exports[`renders ./components/input/demo/textarea.md correctly 1`] = ``; + +exports[`renders ./components/input/demo/tooltip.md correctly 1`] = ``; diff --git a/components/input/__tests__/demo.test.js b/components/input/__tests__/demo.test.js new file mode 100644 index 000000000..108a7fd62 --- /dev/null +++ b/components/input/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('input') diff --git a/components/input/demo/presuffix.md b/components/input/demo/presuffix.md index ee5c1ea14..10ecf4422 100644 --- a/components/input/demo/presuffix.md +++ b/components/input/demo/presuffix.md @@ -11,10 +11,11 @@ Add prefix or suffix icons inside input. ```html