[Improvement] Stepper: add test cases (#1197)

This commit is contained in:
neverland
2018-05-30 17:21:26 +08:00
committed by GitHub
parent f8ccebf085
commit 5ceb044815
2 changed files with 111 additions and 0 deletions
@@ -0,0 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`disable stepper input 1`] = `
<div class="van-stepper">
<button class="van-stepper__minus van-stepper__minus--disabled"></button>
<input type="number" disabled="disabled" class="van-stepper__input">
<button class="van-stepper__plus"></button>
</div>
`;
exports[`disabled stepper 1`] = `
<div class="van-stepper">
<button class="van-stepper__minus van-stepper__minus--disabled"></button>
<input type="number" disabled="disabled" class="van-stepper__input">
<button class="van-stepper__plus van-stepper__plus--disabled"></button>
</div>
`;