chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions
+7 -7
View File
@@ -6,9 +6,9 @@ test('change event', () => {
const wrapper = mount(SwitchCell, {
context: {
on: {
change: onChange
}
}
change: onChange,
},
},
});
wrapper.find('.van-switch').trigger('click');
@@ -19,8 +19,8 @@ test('change event', () => {
test('border prop', () => {
const wrapper = mount(SwitchCell, {
propsData: {
border: false
}
border: false,
},
});
expect(wrapper).toMatchSnapshot();
@@ -29,8 +29,8 @@ test('border prop', () => {
test('cell-size prop', () => {
const wrapper = mount(SwitchCell, {
propsData: {
cellSize: 'large'
}
cellSize: 'large',
},
});
expect(wrapper).toMatchSnapshot();