ant-design/components/message/__tests__/__snapshots__/demo.test.js.snap
07akioni 01cec29a8e
feat: Message hooks API (#25422)
* chore: comment on usePatchElement

* refactor: conform message & notifaction code logic

* feat: message useMessage, wip

* feat: message.useMessage, it works now

* fix: promise on regular api

* feat: message hooks

* chore: fix lint

* chore: new line

* chore: revert new line

* refactor: prefixCls

* fix: prefixCls

* test: cov

* chore

* chore

* chore

* chore

* docs

* docs: message hooks faq

* test: remove useless config provider

* chore: remove some test codes

* chore

* docs: hooks version
2020-07-15 19:51:56 +08:00

124 lines
2.0 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/message/demo/custom-style.md correctly 1`] = `
<button
class="ant-btn"
type="button"
>
<span>
Customized style
</span>
</button>
`;
exports[`renders ./components/message/demo/duration.md correctly 1`] = `
<button
class="ant-btn"
type="button"
>
<span>
Customized display duration
</span>
</button>
`;
exports[`renders ./components/message/demo/hooks.md correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
>
<span>
Display normal message
</span>
</button>
`;
exports[`renders ./components/message/demo/info.md correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
>
<span>
Display normal message
</span>
</button>
`;
exports[`renders ./components/message/demo/loading.md correctly 1`] = `
<button
class="ant-btn"
type="button"
>
<span>
Display a loading indicator
</span>
</button>
`;
exports[`renders ./components/message/demo/other.md 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"
type="button"
>
<span>
Success
</span>
</button>
</div>
<div
class="ant-space-item"
style="margin-right:8px"
>
<button
class="ant-btn"
type="button"
>
<span>
Error
</span>
</button>
</div>
<div
class="ant-space-item"
>
<button
class="ant-btn"
type="button"
>
<span>
Warning
</span>
</button>
</div>
</div>
`;
exports[`renders ./components/message/demo/thenable.md correctly 1`] = `
<button
class="ant-btn"
type="button"
>
<span>
Display sequential messages
</span>
</button>
`;
exports[`renders ./components/message/demo/update.md correctly 1`] = `
<button
class="ant-btn ant-btn-primary"
type="button"
>
<span>
Open the message box
</span>
</button>
`;