mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
6770b7fb22
* test: update snapshot * test: use render * test: fix skip * test: fix skip
161 lines
3.3 KiB
Plaintext
161 lines
3.3 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`renders components/message/demo/custom-style.tsx extend context correctly 1`] = `
|
|
<button
|
|
class="ant-btn ant-btn-default"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Customized style
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`renders components/message/demo/duration.tsx extend context correctly 1`] = `
|
|
<button
|
|
class="ant-btn ant-btn-default"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Customized display duration
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`renders components/message/demo/hooks.tsx extend context correctly 1`] = `
|
|
<button
|
|
class="ant-btn ant-btn-primary"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Display normal message
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`renders components/message/demo/info.tsx extend context correctly 1`] = `
|
|
<button
|
|
class="ant-btn ant-btn-primary"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Display normal message
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`renders components/message/demo/loading.tsx extend context correctly 1`] = `
|
|
<button
|
|
class="ant-btn ant-btn-default"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Display a loading indicator
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`renders components/message/demo/other.tsx extend context correctly 1`] = `
|
|
<div
|
|
class="ant-space ant-space-horizontal ant-space-align-center"
|
|
>
|
|
<div
|
|
class="ant-space-item"
|
|
style="margin-right: 8px;"
|
|
>
|
|
<button
|
|
class="ant-btn ant-btn-default"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Success
|
|
</span>
|
|
</button>
|
|
</div>
|
|
<div
|
|
class="ant-space-item"
|
|
style="margin-right: 8px;"
|
|
>
|
|
<button
|
|
class="ant-btn ant-btn-default"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Error
|
|
</span>
|
|
</button>
|
|
</div>
|
|
<div
|
|
class="ant-space-item"
|
|
>
|
|
<button
|
|
class="ant-btn ant-btn-default"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Warning
|
|
</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders components/message/demo/render-panel.tsx extend context correctly 1`] = `
|
|
<div
|
|
class="ant-message-notice ant-message-notice-pure-panel"
|
|
>
|
|
<div
|
|
class="ant-message-notice-content"
|
|
>
|
|
<div
|
|
class="ant-message-custom-content ant-message-error"
|
|
>
|
|
<span
|
|
aria-label="close-circle"
|
|
class="anticon anticon-close-circle"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
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 01-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>
|
|
</span>
|
|
<span>
|
|
Hello World!
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders components/message/demo/thenable.tsx extend context correctly 1`] = `
|
|
<button
|
|
class="ant-btn ant-btn-default"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Display sequential messages
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`renders components/message/demo/update.tsx extend context correctly 1`] = `
|
|
<button
|
|
class="ant-btn ant-btn-primary"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Open the message box
|
|
</span>
|
|
</button>
|
|
`;
|