chore: prettier test files

This commit is contained in:
陈嘉涵
2020-01-19 16:16:54 +08:00
parent 82208c42b8
commit 2adcfd8b8b
15 changed files with 65 additions and 32 deletions
+12 -2
View File
@@ -83,7 +83,14 @@ test('render coupon list', async () => {
const wrapper = mount(CouponList, {
propsData: {
chosenCoupon: 1,
coupons: [emptyCoupon, coupon, coupon2, coupon3, discountCoupon, discountCoupon2],
coupons: [
emptyCoupon,
coupon,
coupon2,
coupon3,
discountCoupon,
discountCoupon2,
],
disabledCoupons: [disabledCoupon, disabledDiscountCoupon],
},
});
@@ -98,7 +105,10 @@ test('render empty coupon list', () => {
disabledCoupons: [],
},
});
wrapper.findAll('.van-tab').at(1).trigger('click');
wrapper
.findAll('.van-tab')
.at(1)
.trigger('click');
expect(wrapper).toMatchSnapshot();
});