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
+1 -1
View File
@@ -34,7 +34,7 @@ function Info(
Info.props = {
dot: Boolean,
info: [Number, String]
info: [Number, String],
};
export default createComponent<InfoProps>(Info);
+6 -6
View File
@@ -4,8 +4,8 @@ import { mount } from '../../../test';
test('should not render when info is empty string', () => {
const wrapper = mount(Info, {
propsData: {
info: ''
}
info: '',
},
});
expect(wrapper).toMatchSnapshot();
@@ -14,8 +14,8 @@ test('should not render when info is empty string', () => {
test('should not render when info is empty undefined', () => {
const wrapper = mount(Info, {
propsData: {
info: undefined
}
info: undefined,
},
});
expect(wrapper).toMatchSnapshot();
@@ -24,8 +24,8 @@ test('should not render when info is empty undefined', () => {
test('should render when info is zero', () => {
const wrapper = mount(Info, {
propsData: {
info: 0
}
info: 0,
},
});
expect(wrapper).toMatchSnapshot();