ant-design/components/transfer/__tests__/__snapshots__/search.test.js.snap

130 lines
3.7 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
2016-12-08 11:08:13 +08:00
exports[`Search should show cross icon when input value exists 1`] = `
<Search
placeholder=""
value=""
>
<div>
<Input
disabled={false}
onChange={[Function]}
placeholder=""
prefixCls="ant-input"
type="text"
value=""
>
2016-12-04 16:57:38 +08:00
<input
className="ant-input"
disabled={false}
onChange={[Function]}
onKeyDown={[Function]}
placeholder=""
type="text"
value=""
/>
</Input>
<span
className="undefined-action"
>
2017-04-13 11:18:31 +08:00
<Icon
type="search"
>
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
className="anticon anticon-search"
2018-07-18 10:33:54 +08:00
>
2018-08-13 14:46:55 +08:00
<IconReact
2018-08-14 15:32:29 +08:00
className=""
2018-08-13 14:46:55 +08:00
style={Object {}}
2018-07-19 20:37:47 +08:00
type="search"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
className=""
2018-07-19 20:37:47 +08:00
data-icon="search"
fill="currentColor"
height="1em"
2018-08-27 20:40:11 +08:00
key="svg-search"
2018-08-13 14:46:55 +08:00
style={Object {}}
2018-07-19 20:37:47 +08:00
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M949.5 898.5L743.8 692.9C798.9 626.4 832 541.1 832 448c0-212.1-171.9-384-384-384S64 235.9 64 448s171.9 384 384 384c93.1 0 178.4-33.1 244.9-88.2l205.7 205.7c7 7 16.2 10.5 25.5 10.5s18.4-3.5 25.5-10.5c13.9-14.1 13.9-36.9-.1-51zm-380.1-163C531 751.8 490.2 760 448 760s-83-8.2-121.4-24.5c-37.1-15.7-70.5-38.2-99.2-66.9-28.7-28.7-51.2-62.1-66.9-99.2C144.2 531 136 490.2 136 448s8.2-83 24.5-121.4c15.7-37.1 38.2-70.5 66.9-99.2 28.7-28.7 62.1-51.2 99.2-66.9C365 144.2 405.8 136 448 136s83 8.2 121.4 24.5c37.1 15.7 70.5 38.2 99.2 66.9 28.7 28.7 51.2 62.1 66.9 99.2C751.8 365 760 405.8 760 448s-8.2 83-24.5 121.4c-15.7 37.1-38.2 70.5-66.9 99.2-28.7 28.7-62 51.2-99.2 66.9z"
2018-08-27 20:40:11 +08:00
key="svg-search-svg-0"
2018-07-19 20:37:47 +08:00
/>
</svg>
2018-08-13 14:46:55 +08:00
</IconReact>
2018-07-19 20:37:47 +08:00
</i>
2017-04-13 11:18:31 +08:00
</Icon>
</span>
</div>
</Search>
`;
2016-12-08 11:08:13 +08:00
exports[`Search should show cross icon when input value exists 2`] = `
<Search
placeholder=""
value="a"
>
<div>
<Input
disabled={false}
onChange={[Function]}
placeholder=""
prefixCls="ant-input"
type="text"
value="a"
>
2016-12-04 16:57:38 +08:00
<input
className="ant-input"
disabled={false}
onChange={[Function]}
onKeyDown={[Function]}
placeholder=""
type="text"
value="a"
/>
</Input>
<a
className="undefined-action"
href="#"
onClick={[Function]}
>
2017-04-13 11:18:31 +08:00
<Icon
2018-08-24 18:36:08 +08:00
type="close-circle"
>
2018-07-19 20:37:47 +08:00
<i
2018-08-24 18:36:08 +08:00
className="anticon anticon-close-circle"
2018-07-19 20:37:47 +08:00
>
2018-08-13 14:46:55 +08:00
<IconReact
2018-08-14 15:32:29 +08:00
className=""
2018-08-13 14:46:55 +08:00
style={Object {}}
2018-08-24 18:36:08 +08:00
type="close-circle"
>
<svg
aria-hidden="true"
className=""
data-icon="close-circle"
fill="currentColor"
height="1em"
2018-08-27 20:40:11 +08:00
key="svg-close-circle"
2018-08-24 18:36:08 +08:00
style={Object {}}
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-08-24 18:36:08 +08:00
>
<path
d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0zm205.3 666.9c14 14.1 14 36.9-.1 50.9-7 7-16.2 10.5-25.4 10.5s-18.5-3.5-25.5-10.6L512 563 357.7 717.7c-7 7.1-16.3 10.6-25.5 10.6s-18.4-3.5-25.4-10.5c-14.1-14-14.1-36.8-.1-50.9L461.2 512 306.7 357.1c-14-14.1-14-36.9.1-50.9s36.9-14 50.9.1L512 461l154.3-154.8c14-14.1 36.8-14.1 50.9-.1 14.1 14 14.1 36.8.1 50.9L562.8 512l154.5 154.9z"
2018-08-27 20:40:11 +08:00
key="svg-close-circle-svg-0"
2018-08-24 18:36:08 +08:00
/>
</svg>
</IconReact>
2018-07-19 20:37:47 +08:00
</i>
2017-04-13 11:18:31 +08:00
</Icon>
</a>
</div>
</Search>
`;