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
+10 -10
View File
@@ -6,15 +6,15 @@ test('speed is 0', async () => {
const wrapper = mount(Circle, {
propsData: {
rate: 50,
value: 0
value: 0,
},
listeners: {
input(value) {
Vue.nextTick(() => {
wrapper.setProps({ value });
});
}
}
},
},
});
await later();
@@ -26,11 +26,11 @@ test('animate', async () => {
mount(Circle, {
propsData: {
rate: 50,
speed: 100
speed: 100,
},
listeners: {
input: onInput
}
input: onInput,
},
});
await later(50);
@@ -41,8 +41,8 @@ test('animate', async () => {
test('size prop', () => {
const wrapper = mount(Circle, {
propsData: {
size: 100
}
size: 100,
},
});
expect(wrapper).toMatchSnapshot();
@@ -51,8 +51,8 @@ test('size prop', () => {
test('stroke-linecap prop', () => {
const wrapper = mount(Circle, {
propsData: {
strokeLinecap: 'square'
}
strokeLinecap: 'square',
},
});
expect(wrapper).toMatchSnapshot();