chore: prettier source code
This commit is contained in:
@@ -181,7 +181,7 @@ export default createComponent({
|
||||
</div>
|
||||
);
|
||||
|
||||
const onChange = index => () => this.$emit('change', index);
|
||||
const onChange = (index) => () => this.$emit('change', index);
|
||||
|
||||
const CouponTab = (
|
||||
<Tab title={title}>
|
||||
@@ -210,7 +210,7 @@ export default createComponent({
|
||||
class={bem('list', { 'with-bottom': this.showCloseButton })}
|
||||
style={this.listStyle}
|
||||
>
|
||||
{disabledCoupons.map(coupon => (
|
||||
{disabledCoupons.map((coupon) => (
|
||||
<Coupon
|
||||
disabled
|
||||
key={coupon.id}
|
||||
|
||||
@@ -105,10 +105,7 @@ 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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user