From fea034987c2860bfd0f19ef6c37b30a65241e5f3 Mon Sep 17 00:00:00 2001 From: Amour1688 Date: Fri, 14 Aug 2020 13:04:39 +0800 Subject: [PATCH] test: update date-picker snap --- .../__snapshots__/DatePicker.test.js.snap | 2 +- .../__snapshots__/RangePicker.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 69 ++++++++++++------- .../__snapshots__/other.test.js.snap | 8 +-- 4 files changed, 51 insertions(+), 32 deletions(-) diff --git a/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap b/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap index 162f0ecd2..5330b1d73 100644 --- a/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap +++ b/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`DatePicker prop locale should works 1`] = `
`; +exports[`DatePicker prop locale should works 1`] = `
`; diff --git a/components/date-picker/__tests__/__snapshots__/RangePicker.test.js.snap b/components/date-picker/__tests__/__snapshots__/RangePicker.test.js.snap index faae1ac8a..0811b3f43 100644 --- a/components/date-picker/__tests__/__snapshots__/RangePicker.test.js.snap +++ b/components/date-picker/__tests__/__snapshots__/RangePicker.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`RangePicker show month panel according to value 1`] = ` -
~ +
~
@@ -381,7 +381,7 @@ exports[`RangePicker show month panel according to value 1`] = ` `; exports[`RangePicker switch to corresponding month panel when click presetted ranges 1`] = ` - ~ + ~
diff --git a/components/date-picker/__tests__/__snapshots__/demo.test.js.snap b/components/date-picker/__tests__/__snapshots__/demo.test.js.snap index aae20b792..9204ff3e8 100644 --- a/components/date-picker/__tests__/__snapshots__/demo.test.js.snap +++ b/components/date-picker/__tests__/__snapshots__/demo.test.js.snap @@ -1,41 +1,60 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`renders ./antdv-demo/docs/date-picker/demo/basic.md correctly 1`] = `


~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/basic.md correctly 1`] = ` +


~ +
+`; -exports[`renders ./antdv-demo/docs/date-picker/demo/date-render.md correctly 1`] = `
~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/date-render.md correctly 1`] = ` +
~ + +`; -exports[`renders ./antdv-demo/docs/date-picker/demo/disabled.md correctly 1`] = `


~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/disabled.md correctly 1`] = ` +


~ + +`; -exports[`renders ./antdv-demo/docs/date-picker/demo/disabled-date.md correctly 1`] = `


~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/disabled-date.md correctly 1`] = ` +


~ + +`; -exports[`renders ./antdv-demo/docs/date-picker/demo/extra-footer.md correctly 1`] = `
~ ~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/extra-footer.md correctly 1`] = ` +
~ + ~ +
+`; -exports[`renders ./antdv-demo/docs/date-picker/demo/format.md correctly 1`] = `



~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/format.md correctly 1`] = `



~ `; -exports[`renders ./antdv-demo/docs/date-picker/demo/mode.md correctly 1`] = `

~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/mode.md correctly 1`] = ` +

~ + +`; -exports[`renders ./antdv-demo/docs/date-picker/demo/presetted-ranges.md correctly 1`] = `
~
~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/presetted-ranges.md correctly 1`] = ` + ~ +
~ + +`; exports[`renders ./antdv-demo/docs/date-picker/demo/size.md correctly 1`] = ` -
-


-


~
+




~ +
`; -exports[`renders ./antdv-demo/docs/date-picker/demo/start-end.md correctly 1`] = `
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/start-end.md correctly 1`] = `
`; -exports[`renders ./antdv-demo/docs/date-picker/demo/suffix.md correctly 1`] = `


~

ab

ab

~ ab
ab
`; - -exports[`renders ./antdv-demo/docs/date-picker/demo/text.md correctly 1`] = ` -
SelectTime
- 请选择 -
+exports[`renders ./antdv-demo/docs/date-picker/demo/suffix.md correctly 1`] = ` +


~ +

ab

ab

~ +ab
ab `; -exports[`renders ./antdv-demo/docs/date-picker/demo/time.md correctly 1`] = `

~
`; +exports[`renders ./antdv-demo/docs/date-picker/demo/text.md correctly 1`] = `SelectTime
请选择`; + +exports[`renders ./antdv-demo/docs/date-picker/demo/time.md correctly 1`] = ` +

~ + +`; diff --git a/components/date-picker/__tests__/__snapshots__/other.test.js.snap b/components/date-picker/__tests__/__snapshots__/other.test.js.snap index fc7491670..701ddae8f 100644 --- a/components/date-picker/__tests__/__snapshots__/other.test.js.snap +++ b/components/date-picker/__tests__/__snapshots__/other.test.js.snap @@ -242,10 +242,10 @@ exports[`MonthPicker and WeekPicker render WeekPicker 1`] = `
`; -exports[`Picker format by locale date 1`] = `
`; +exports[`Picker format by locale date 1`] = `
`; -exports[`Picker format by locale dateTime 1`] = `
`; +exports[`Picker format by locale dateTime 1`] = `
`; -exports[`Picker format by locale month 1`] = `
`; +exports[`Picker format by locale month 1`] = `
`; -exports[`Picker format by locale week 1`] = ``; +exports[`Picker format by locale week 1`] = ``;