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

57 lines
3.6 KiB
Plaintext
Raw Normal View History

2018-05-14 01:49:26 +00:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Button fixbug renders {0} , 0 and {false} 1`] = `
<button class="ant-btn" type="button">
2020-06-20 13:45:08 +00:00
<!---->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">
<!---->
<!----></button>
`;
exports[`Button renders Chinese characters correctly 1`] = `
<button class="ant-btn" type="button">
2020-06-20 13:45:08 +00:00
<!----><span>按 钮</span></button>
`;
exports[`Button renders Chinese characters correctly 2`] = `
<button class="ant-btn" type="button">
2020-06-20 13:45:08 +00:00
<!----><span class="anticon anticon-search" role="img" aria-label="search"><svg class="" data-icon="search" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896" focusable="false"><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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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"></path></svg></span>按钮</button>
`;
exports[`Button renders Chinese characters correctly 3`] = `
<button class="ant-btn" type="button">
2020-06-20 13:45:08 +00:00
<!----><span>按 钮</span></button>
`;
2020-06-20 13:45:08 +00:00
exports[`Button renders Chinese characters correctly 4`] = `<button class="ant-btn ant-btn-loading" type="button"><span class="anticon anticon-loading" role="img" aria-label="loading"><svg class="anticon-spin" data-icon="loading" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="0 0 1024 1024" focusable="false"><path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"></path></svg></span><span>按 钮</span></button>`;
exports[`Button renders Chinese characters correctly 5`] = `<button class="ant-btn ant-btn-loading" type="button"><span class="anticon anticon-loading" role="img" aria-label="loading"><svg class="anticon-spin" data-icon="loading" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="0 0 1024 1024" focusable="false"><path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"></path></svg></span><span>按 钮</span></button>`;
2020-06-20 13:45:08 +00:00
exports[`Button renders Chinese characters correctly 6`] = `
2020-06-21 03:28:07 +00:00
<button class="ant-btn ant-btn-two-chinese-chars" type="button">
<!----><span>按钮</span></button>
2020-06-20 13:45:08 +00:00
`;
exports[`Button renders correctly 1`] = `
<button class="ant-btn" type="button">
<!----><span>Follow</span></button>
`;
exports[`Button should not render as link button when href is undefined 1`] = `
<button class="ant-btn ant-btn-primary" type="button">
<!----><span>button</span></button>
`;
exports[`Button should support link button 1`] = `
<a target="_blank" href="http://ant.design" class="ant-btn">
<!----><span>link button</span></a>
`;