mirror of
https://github.com/youzan/vant.git
synced 2026-05-05 01:00:55 +08:00
chore: add trailingComma
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ function Info(
|
||||
|
||||
Info.props = {
|
||||
dot: Boolean,
|
||||
info: [Number, String]
|
||||
info: [Number, String],
|
||||
};
|
||||
|
||||
export default createComponent<InfoProps>(Info);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user