Browse Source

update snapshots

pull/16950/head
afc163 6 years ago
parent
commit
f1c43c16b7
No known key found for this signature in database GPG Key ID: 738F973FCE5C6B48
  1. 36
      components/time-picker/__tests__/__snapshots__/index.test.js.snap
  2. 2
      components/time-picker/__tests__/index.test.js

36
components/time-picker/__tests__/__snapshots__/index.test.js.snap

@ -51,7 +51,7 @@ Array [
id="" id=""
placeholder="Избери дата" placeholder="Избери дата"
type="text" type="text"
value="" value="00:00:00"
/> />
<span <span
class="ant-time-picker-icon" class="ant-time-picker-icon"
@ -79,6 +79,26 @@ Array [
</svg> </svg>
</i> </i>
</span> </span>
<i
aria-label="icon: close-circle"
class="anticon anticon-close-circle ant-time-picker-clear"
tabindex="-1"
>
<svg
aria-hidden="true"
class=""
data-icon="close-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"
/>
</svg>
</i>
</span>, </span>,
<div> <div>
<div <div
@ -94,7 +114,7 @@ Array [
<input <input
class="ant-time-picker-panel-input" class="ant-time-picker-panel-input"
placeholder="Избери дата" placeholder="Избери дата"
value="" value="00:00:00"
/> />
</div> </div>
<div <div
@ -105,7 +125,7 @@ Array [
> >
<ul> <ul>
<li <li
class="" class="ant-time-picker-panel-select-option-selected"
role="button" role="button"
> >
00 00
@ -201,7 +221,7 @@ Array [
15 15
</li> </li>
<li <li
class="ant-time-picker-panel-select-option-selected" class=""
role="button" role="button"
> >
16 16
@ -255,7 +275,7 @@ Array [
> >
<ul> <ul>
<li <li
class="" class="ant-time-picker-panel-select-option-selected"
role="button" role="button"
> >
00 00
@ -309,7 +329,7 @@ Array [
08 08
</li> </li>
<li <li
class="ant-time-picker-panel-select-option-selected" class=""
role="button" role="button"
> >
09 09
@ -621,7 +641,7 @@ Array [
> >
<ul> <ul>
<li <li
class="" class="ant-time-picker-panel-select-option-selected"
role="button" role="button"
> >
00 00
@ -789,7 +809,7 @@ Array [
27 27
</li> </li>
<li <li
class="ant-time-picker-panel-select-option-selected" class=""
role="button" role="button"
> >
28 28

2
components/time-picker/__tests__/index.test.js

@ -73,7 +73,7 @@ describe('TimePicker', () => {
const locale = { const locale = {
placeholder: 'Избери дата', placeholder: 'Избери дата',
}; };
const wrapper = mount(<TimePicker open locale={locale} />); const wrapper = mount(<TimePicker defaultValue={moment('2000-01-01 00:00:00')} open locale={locale} />);
expect(wrapper.render()).toMatchSnapshot(); expect(wrapper.render()).toMatchSnapshot();
}); });
}); });

Loading…
Cancel
Save