You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
165 lines
4.2 KiB
165 lines
4.2 KiB
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Button fixbug renders {0} , 0 and {false} 1`] = `
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
0
|
|
</button>
|
|
`;
|
|
|
|
exports[`Button fixbug renders {0} , 0 and {false} 2`] = `
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<span>
|
|
0
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`Button fixbug renders {0} , 0 and {false} 3`] = `
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
/>
|
|
`;
|
|
|
|
exports[`Button renders Chinese characters correctly 1`] = `
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<span>
|
|
按 钮
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`Button renders Chinese characters correctly 2`] = `
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<svg
|
|
class="anticon"
|
|
data-icon="search"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
>
|
|
<path
|
|
d="M769.2 254.8C726.2 211.7 668.9 188 608 188s-118.2 23.7-161.2 66.8C403.7 297.8 380 355.1 380 416s23.7 118.2 66.8 161.2c43 43.1 100.3 66.8 161.2 66.8s118.2-23.7 161.2-66.8c43.1-43 66.8-100.3 66.8-161.2s-23.7-118.2-66.8-161.2z"
|
|
fill="none"
|
|
/>
|
|
<path
|
|
d="M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1c-3.1 3.1-3.1 8.2 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z"
|
|
/>
|
|
</svg>
|
|
<span>
|
|
按钮
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`Button renders Chinese characters correctly 3`] = `
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<svg
|
|
class="anticon"
|
|
data-icon="search"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
>
|
|
<path
|
|
d="M769.2 254.8C726.2 211.7 668.9 188 608 188s-118.2 23.7-161.2 66.8C403.7 297.8 380 355.1 380 416s23.7 118.2 66.8 161.2c43 43.1 100.3 66.8 161.2 66.8s118.2-23.7 161.2-66.8c43.1-43 66.8-100.3 66.8-161.2s-23.7-118.2-66.8-161.2z"
|
|
fill="none"
|
|
/>
|
|
<path
|
|
d="M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1c-3.1 3.1-3.1 8.2 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z"
|
|
/>
|
|
</svg>
|
|
<span>
|
|
按钮
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`Button renders Chinese characters correctly 4`] = `
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<svg
|
|
class="anticon"
|
|
data-icon="search"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
>
|
|
<path
|
|
d="M769.2 254.8C726.2 211.7 668.9 188 608 188s-118.2 23.7-161.2 66.8C403.7 297.8 380 355.1 380 416s23.7 118.2 66.8 161.2c43 43.1 100.3 66.8 161.2 66.8s118.2-23.7 161.2-66.8c43.1-43 66.8-100.3 66.8-161.2s-23.7-118.2-66.8-161.2z"
|
|
fill="none"
|
|
/>
|
|
<path
|
|
d="M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1c-3.1 3.1-3.1 8.2 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z"
|
|
/>
|
|
</svg>
|
|
<span>
|
|
按钮
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`Button renders Chinese characters correctly 5`] = `
|
|
<button
|
|
class="ant-btn ant-btn-loading"
|
|
type="button"
|
|
>
|
|
<span>
|
|
按钮
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`Button renders Chinese characters correctly 6`] = `
|
|
<button
|
|
class="ant-btn ant-btn-loading"
|
|
type="button"
|
|
>
|
|
<span>
|
|
按 钮
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`Button renders correctly 1`] = `
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Follow
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`Button should support link button 1`] = `
|
|
<a
|
|
class="ant-btn"
|
|
href="http://ant.design"
|
|
target="_blank"
|
|
>
|
|
<span>
|
|
link button
|
|
</span>
|
|
</a>
|
|
`;
|
|
|