vant/src/share-sheet/test/__snapshots__/index.spec.ts.snap
2021-02-11 13:04:00 +08:00

42 lines
1010 B
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render cancel text when using cancel-text prop 1`] = `
<button type="button"
class="van-share-sheet__cancel"
>
foo
</button>
`;
exports[`should render description when using description prop 1`] = `
<span class="van-share-sheet__description">
foo
</span>
`;
exports[`should render title and description slot correctly 1`] = `
<transition-stub>
<div class="van-overlay">
</div>
</transition-stub>
<transition-stub>
<div class="van-popup van-popup--round van-popup--bottom van-popup--safe-area-inset-bottom van-share-sheet">
<div class="van-share-sheet__header">
<h2 class="van-share-sheet__title">
Custom Title
</h2>
<span class="van-share-sheet__description">
Custom Description
</span>
</div>
<div class="van-share-sheet__options">
</div>
<button type="button"
class="van-share-sheet__cancel"
>
取消
</button>
</div>
</transition-stub>
`;