chore: add trailingComma
This commit is contained in:
@@ -16,8 +16,8 @@ test('filter prop', () => {
|
||||
filter,
|
||||
minDate: new Date(2020, 0, 1),
|
||||
maxDate: new Date(2025, 10, 1),
|
||||
value: new Date(2020, 10, 1, 0, 0)
|
||||
}
|
||||
value: new Date(2020, 10, 1, 0, 0),
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
@@ -30,8 +30,8 @@ test('formatter prop', async () => {
|
||||
formatter,
|
||||
minDate: new Date(2010, 0, 1),
|
||||
maxDate: new Date(2025, 10, 1),
|
||||
value: new Date(2020, 10, 1, 0, 0)
|
||||
}
|
||||
value: new Date(2020, 10, 1, 0, 0),
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
@@ -45,7 +45,7 @@ test('formatter prop', async () => {
|
||||
'05 month',
|
||||
'05 day',
|
||||
'00 hour',
|
||||
'00 minute'
|
||||
'00 minute',
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -56,8 +56,8 @@ test('confirm event', () => {
|
||||
propsData: {
|
||||
value: date,
|
||||
minDate: new Date(2020, 0, 1),
|
||||
maxDate: new Date(2025, 10, 1)
|
||||
}
|
||||
maxDate: new Date(2025, 10, 1),
|
||||
},
|
||||
});
|
||||
|
||||
wrapper.find('.van-picker__confirm').trigger('click');
|
||||
@@ -80,8 +80,8 @@ test('max-date prop', () => {
|
||||
const wrapper = mount(DatePicker, {
|
||||
propsData: {
|
||||
value: new Date(2020, 10, 30, 30, 30),
|
||||
maxDate
|
||||
}
|
||||
maxDate,
|
||||
},
|
||||
});
|
||||
|
||||
wrapper.find('.van-picker__confirm').trigger('click');
|
||||
@@ -93,8 +93,8 @@ test('min-date prop', () => {
|
||||
const wrapper = mount(DatePicker, {
|
||||
propsData: {
|
||||
value: new Date(2020, 0, 0, 0, 0),
|
||||
minDate
|
||||
}
|
||||
minDate,
|
||||
},
|
||||
});
|
||||
|
||||
wrapper.find('.van-picker__confirm').trigger('click');
|
||||
@@ -104,8 +104,8 @@ test('min-date prop', () => {
|
||||
test('dynamic set value', () => {
|
||||
const wrapper = mount(DatePicker, {
|
||||
propsData: {
|
||||
value: new Date(2019, 1, 1)
|
||||
}
|
||||
value: new Date(2019, 1, 1),
|
||||
},
|
||||
});
|
||||
|
||||
wrapper.setProps({ value: new Date(2019, 1, 1) });
|
||||
@@ -132,8 +132,8 @@ test('use min-date with filter', async () => {
|
||||
}
|
||||
|
||||
return values;
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await later();
|
||||
|
||||
@@ -8,8 +8,8 @@ test('confirm & cancel event', () => {
|
||||
const wrapper = mount(DatetimePicker, {
|
||||
listeners: {
|
||||
confirm: onConfirm,
|
||||
cancel: onCancel
|
||||
}
|
||||
cancel: onCancel,
|
||||
},
|
||||
});
|
||||
|
||||
wrapper.find('.van-picker__confirm').trigger('click');
|
||||
@@ -24,8 +24,8 @@ test('time type', () => {
|
||||
propsData: {
|
||||
type: 'time',
|
||||
minHour: 22,
|
||||
minMinute: 58
|
||||
}
|
||||
minMinute: 58,
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
|
||||
@@ -14,8 +14,8 @@ test('format initial value', () => {
|
||||
const wrapper = mount(TimePicker, {
|
||||
propsData: {
|
||||
minHour: 22,
|
||||
minMinute: 58
|
||||
}
|
||||
minMinute: 58,
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
@@ -26,8 +26,8 @@ test('max-hour & max-minute', () => {
|
||||
propsData: {
|
||||
value: '23:59',
|
||||
maxHour: 2,
|
||||
maxMinute: 2
|
||||
}
|
||||
maxMinute: 2,
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
@@ -37,8 +37,8 @@ test('filter prop', () => {
|
||||
const wrapper = mount(TimePicker, {
|
||||
propsData: {
|
||||
filter,
|
||||
value: '12:00'
|
||||
}
|
||||
value: '12:00',
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
@@ -49,8 +49,8 @@ test('formatter prop', async () => {
|
||||
propsData: {
|
||||
filter,
|
||||
formatter,
|
||||
value: '12:00'
|
||||
}
|
||||
value: '12:00',
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
@@ -65,8 +65,8 @@ test('formatter prop', async () => {
|
||||
test('confirm event', () => {
|
||||
const wrapper = mount(TimePicker, {
|
||||
propsData: {
|
||||
value: '12:00'
|
||||
}
|
||||
value: '12:00',
|
||||
},
|
||||
});
|
||||
|
||||
triggerDrag(wrapper.find('.van-picker-column'), 0, -100);
|
||||
@@ -97,8 +97,8 @@ test('change min-minute and emit correct value', async () => {
|
||||
const wrapper = mount(TimePicker, {
|
||||
propsData: {
|
||||
value: '12:00',
|
||||
minMinute: 0
|
||||
}
|
||||
minMinute: 0,
|
||||
},
|
||||
});
|
||||
|
||||
await later();
|
||||
@@ -112,7 +112,7 @@ test('set max-hour & max-minute smaller than current then emit correct value', a
|
||||
const wrapper = mount(TimePicker, {
|
||||
propsData: {
|
||||
value: '23:59',
|
||||
}
|
||||
},
|
||||
});
|
||||
await later();
|
||||
wrapper.setProps({
|
||||
|
||||
Reference in New Issue
Block a user