ant-design/components/drawer/__tests__/__snapshots__/Drawer.test.js.snap

145 lines
2.6 KiB
Plaintext
Raw Normal View History

2018-06-19 17:42:25 +08:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
2018-06-25 23:25:38 +08:00
exports[`Drawer closable is false 1`] = `
2018-06-26 11:19:49 +08:00
<div
class=""
>
<div
class="ant-drawer ant-drawer-right ant-drawer-open"
2018-06-26 11:19:49 +08:00
>
<div
class="ant-drawer-mask"
/>
<div
class="ant-drawer-content-wrapper"
style=""
2018-06-26 11:19:49 +08:00
>
2018-06-25 23:25:38 +08:00
<div
2018-06-26 11:19:49 +08:00
class="ant-drawer-content"
2018-06-25 23:25:38 +08:00
>
<div
style="overflow: auto; height: 100%; width: 256px;"
2018-06-25 23:25:38 +08:00
>
<div
2018-06-26 11:19:49 +08:00
class="ant-drawer-body"
2018-06-25 23:25:38 +08:00
>
2018-06-26 11:19:49 +08:00
Here is content of Drawer
2018-06-25 23:25:38 +08:00
</div>
</div>
</div>
</div>
</div>
</div>
`;
exports[`Drawer destroyOnClose is true 1`] = `
2018-06-26 11:19:49 +08:00
<div
class=""
>
<div
class="ant-drawer ant-drawer-right"
2018-06-26 11:19:49 +08:00
>
<div
class="ant-drawer-mask"
/>
<div
class="ant-drawer-content-wrapper"
style="transform: translateX(100%);"
2018-06-26 11:19:49 +08:00
>
<div
class="ant-drawer-content"
/>
</div>
</div>
2018-06-25 23:25:38 +08:00
</div>
`;
exports[`Drawer have a title 1`] = `
2018-06-26 11:19:49 +08:00
<div
class=""
>
<div
class="ant-drawer ant-drawer-right ant-drawer-open"
2018-06-26 11:19:49 +08:00
>
<div
class="ant-drawer-mask"
/>
<div
class="ant-drawer-content-wrapper"
style=""
2018-06-26 11:19:49 +08:00
>
2018-06-25 23:25:38 +08:00
<div
2018-06-26 11:19:49 +08:00
class="ant-drawer-content"
2018-06-25 23:25:38 +08:00
>
<div
style="overflow: auto; height: 100%; width: 256px;"
2018-06-25 23:25:38 +08:00
>
<div
2018-06-26 11:19:49 +08:00
class="ant-drawer-header"
2018-06-25 23:25:38 +08:00
>
<div
2018-06-26 11:19:49 +08:00
class="ant-drawer-title"
2018-06-25 23:25:38 +08:00
>
2018-06-26 11:19:49 +08:00
Test Title
2018-06-25 23:25:38 +08:00
</div>
</div>
2018-06-26 11:19:49 +08:00
<button
aria-label="Close"
class="ant-drawer-close"
>
<span
class="ant-drawer-close-x"
/>
</button>
<div
class="ant-drawer-body"
>
Here is content of Drawer
</div>
2018-06-25 23:25:38 +08:00
</div>
</div>
</div>
</div>
</div>
`;
2018-06-19 17:42:25 +08:00
exports[`Drawer render correctly 1`] = `
2018-06-26 11:19:49 +08:00
<div
class=""
>
<div
class="ant-drawer ant-drawer-right ant-drawer-open"
2018-06-26 11:19:49 +08:00
>
<div
class="ant-drawer-mask"
/>
<div
class="ant-drawer-content-wrapper"
style=""
2018-06-26 11:19:49 +08:00
>
2018-06-19 17:42:25 +08:00
<div
2018-06-26 11:19:49 +08:00
class="ant-drawer-content"
2018-06-19 17:42:25 +08:00
>
<div
style="overflow: auto; height: 100%; width: 400px;"
2018-06-19 17:42:25 +08:00
>
2018-06-26 11:19:49 +08:00
<button
aria-label="Close"
class="ant-drawer-close"
>
<span
class="ant-drawer-close-x"
/>
</button>
2018-06-19 17:42:25 +08:00
<div
2018-06-26 11:19:49 +08:00
class="ant-drawer-body"
2018-06-19 17:42:25 +08:00
>
2018-06-26 11:19:49 +08:00
Here is content of Drawer
2018-06-19 17:42:25 +08:00
</div>
</div>
</div>
</div>
</div>
</div>
`;