ant-design/components/input/__tests__/__snapshots__/index.test.js.snap

130 lines
3.2 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Input should support maxLength 1`] = `
<Input
disabled={false}
maxLength="3"
type="text"
>
<Consumer>
<input
className="ant-input"
disabled={false}
maxLength="3"
onKeyDown={[Function]}
type="text"
/>
</Consumer>
</Input>
`;
2017-11-01 12:12:16 +08:00
exports[`Input.Search should support suffix 1`] = `
<Search
2017-11-06 19:00:36 +08:00
enterButton={false}
2017-11-01 12:12:16 +08:00
suffix="suffix"
>
<Consumer>
<Input
className="ant-input-search"
disabled={false}
onPressEnter={[Function]}
prefixCls="ant-input"
suffix={
Array [
"suffix",
<Icon
className="ant-input-search-icon"
onClick={[Function]}
type="search"
/>,
]
}
type="text"
2017-11-01 12:12:16 +08:00
>
<Consumer>
<span
className="ant-input-search ant-input-affix-wrapper"
2017-11-01 12:12:16 +08:00
>
<input
className="ant-input"
disabled={false}
onKeyDown={[Function]}
style={null}
type="text"
/>
<span
className="ant-input-suffix"
2018-07-18 10:33:54 +08:00
>
suffix
<Icon
className="ant-input-search-icon"
key="searchIcon"
onClick={[Function]}
type="search"
2018-09-02 19:53:29 +08:00
>
<i
className="anticon anticon-search ant-input-search-icon"
onClick={[Function]}
2018-09-02 19:53:29 +08:00
>
<IconReact
className=""
type="search-o"
>
<svg
aria-hidden="true"
className=""
data-icon="search"
fill="currentColor"
height="1em"
key="svg-search"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
key="svg-search-svg-0"
/>
</svg>
</IconReact>
</i>
</Icon>
</span>
</span>
</Consumer>
</Input>
</Consumer>
2017-11-01 12:12:16 +08:00
</Search>
`;
exports[`TextArea should support disabled 1`] = `
<TextArea
disabled={true}
>
<Consumer>
<textarea
className="ant-input ant-input-disabled"
disabled={true}
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
/>
</Consumer>
</TextArea>
`;
exports[`TextArea should support maxLength 1`] = `
<TextArea
maxLength="10"
>
<Consumer>
<textarea
className="ant-input"
maxLength="10"
onChange={[Function]}
onKeyDown={[Function]}
style={Object {}}
/>
</Consumer>
</TextArea>
`;