ant-design/components/affix/__tests__/__snapshots__/demo.test.tsx.snap

109 lines
1.7 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders components/affix/demo/basic.tsx correctly 1`] = `
Array [
2016-11-22 14:28:05 +08:00
<div>
<div
class=""
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Affix top
</span>
</button>
</div>
</div>,
<br />,
2016-11-22 14:28:05 +08:00
<div>
<div
class=""
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Affix bottom
</span>
</button>
</div>
</div>,
]
2016-11-22 14:28:05 +08:00
`;
exports[`renders components/affix/demo/debug.tsx correctly 1`] = `
2019-07-16 20:48:03 +08:00
<div
style="height:10000px"
2019-07-16 20:48:03 +08:00
>
<div>
Top
</div>
<div>
<div
class=""
>
<div
style="background:red"
2019-07-16 20:48:03 +08:00
>
<button
class="ant-btn ant-btn-primary"
type="button"
>
<span>
Affix top
</span>
</button>
</div>
</div>
</div>
<div>
Bottom
</div>
</div>
`;
exports[`renders components/affix/demo/on-change.tsx correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
class=""
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
120px to affix top
</span>
</button>
</div>
</div>
`;
exports[`renders components/affix/demo/target.tsx correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="scrollable-container"
>
2016-11-22 14:28:05 +08:00
<div
class="background"
>
2016-12-03 16:23:35 +08:00
<div>
<div
class=""
>
2016-12-03 16:23:35 +08:00
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-12-03 16:23:35 +08:00
<span>
Fixed at the top of container
</span>
</button>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
`;