test(NumberKeyboard): update test cases

This commit is contained in:
chenjiahan
2021-01-12 21:02:38 +08:00
parent 52a0e5a8c7
commit 246f79d86d
5 changed files with 273 additions and 701 deletions
@@ -0,0 +1,40 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render extra key correctly when using extra-key prop 1`] = `
<div role="button"
tabindex="0"
class="van-key"
>
foo
</div>
`;
exports[`should render extra-key slot correctly 1`] = `
<div role="button"
tabindex="0"
class="van-key"
>
Custom Extra Key
</div>
`;
exports[`should render title and close button correctly 1`] = `
<div class="van-number-keyboard__header">
<h2 class="van-number-keyboard__title">
Title
</h2>
<button type="button"
class="van-number-keyboard__close"
>
Close
</button>
</div>
`;
exports[`should render title-left slot correctly 1`] = `
<div class="van-number-keyboard__header">
<span class="van-number-keyboard__title-left">
Custom Title Left
</span>
</div>
`;