Skip to content

Commit ba93c49

Browse files
committed
style: format and update test
1 parent d4f23ce commit ba93c49

File tree

6 files changed

+8
-16
lines changed

6 files changed

+8
-16
lines changed

components/dropdown/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exports[`renders ./components/dropdown/demo/dropdown-button.md correctly 1`] = `
1414
<div class="ant-btn-group ant-dropdown-button"><button type="button" class="ant-btn ant-btn-default"><span>Dropdown</span></button><button type="button" class="ant-btn ant-btn-default ant-dropdown-trigger"><i class="anticon anticon-ellipsis"><svg viewBox="64 64 896 896" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
1515
<path d="M176 511a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0z"></path>
1616
</svg></i></button></div>
17-
<div class="ant-btn-group ant-dropdown-button" style="margin-left: 8px;"><button disabled="disabled" type="button" class="ant-btn ant-btn-default"><span>Dropdown</span></button><button type="button" class="ant-btn ant-btn-default ant-dropdown-trigger"><i class="anticon anticon-ellipsis"><svg viewBox="64 64 896 896" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
17+
<div class="ant-btn-group ant-dropdown-button" style="margin-left: 8px;"><button disabled="disabled" type="button" class="ant-btn ant-btn-default"><span>Dropdown</span></button><button disabled="disabled" type="button" class="ant-btn ant-btn-default ant-dropdown-trigger"><i class="anticon anticon-ellipsis"><svg viewBox="64 64 896 896" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
1818
<path d="M176 511a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0z"></path>
1919
</svg></i></button></div> <button type="button" class="ant-btn ant-btn-default ant-dropdown-trigger" style="margin-left: 8px;"><span>Button</span><i class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
2020
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>

components/input/__tests__/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('TextArea', () => {
4343

4444
await asyncExpect(() => {
4545
expect(mockFunc).toHaveBeenCalledTimes(2);
46-
}, 0);
46+
}, 100);
4747
});
4848

4949
it('should support disabled', async () => {

components/timeline/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ exports[`renders ./components/timeline/demo/custom.md correctly 1`] = `
117117
</li>
118118
<li class="ant-timeline-item">
119119
<div class="ant-timeline-item-tail"></div>
120-
<div class="ant-timeline-item-head ant-timeline-item-head-custom ant-timeline-item-head-red"><i class="anticon anticon-clock-circle-o" style="font-size: '16px';"><svg viewBox="64 64 896 896" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
120+
<div class="ant-timeline-item-head ant-timeline-item-head-custom ant-timeline-item-head-red"><i class="anticon anticon-clock-circle-o" style="font-size: 16px;"><svg viewBox="64 64 896 896" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
121121
<path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path>
122122
<path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path>
123123
</svg></i></div>

components/timeline/demo/custom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Set a node as an icon or other custom element.
1414
<a-timeline-item>Create a services site 2015-09-01</a-timeline-item>
1515
<a-timeline-item>Solve initial network problems 2015-09-01</a-timeline-item>
1616
<a-timeline-item color="red">
17-
<a-icon slot="dot" type="clock-circle-o" style="fontSize: '16px'" />
17+
<a-icon slot="dot" type="clock-circle-o" style="font-size: 16px;" />
1818
Technical testing 2015-09-01
1919
</a-timeline-item>
2020
<a-timeline-item>Network problems being solved 2015-09-01</a-timeline-item>

components/vc-slick/src/slider.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ export default {
110110
if (settings.centerMode) {
111111
if (settings.slidesToScroll > 1 && process.env.NODE_ENV !== 'production') {
112112
console.warn(
113-
`slidesToScroll should be equal to 1 in centerMode, you are using ${
114-
settings.slidesToScroll
115-
}`,
113+
`slidesToScroll should be equal to 1 in centerMode, you are using ${settings.slidesToScroll}`,
116114
);
117115
}
118116
settings.slidesToScroll = 1;
@@ -121,16 +119,12 @@ export default {
121119
if (settings.fade) {
122120
if (settings.slidesToShow > 1 && process.env.NODE_ENV !== 'production') {
123121
console.warn(
124-
`slidesToShow should be equal to 1 when fade is true, you're using ${
125-
settings.slidesToShow
126-
}`,
122+
`slidesToShow should be equal to 1 when fade is true, you're using ${settings.slidesToShow}`,
127123
);
128124
}
129125
if (settings.slidesToScroll > 1 && process.env.NODE_ENV !== 'production') {
130126
console.warn(
131-
`slidesToScroll should be equal to 1 when fade is true, you're using ${
132-
settings.slidesToScroll
133-
}`,
127+
`slidesToScroll should be equal to 1 when fade is true, you're using ${settings.slidesToScroll}`,
134128
);
135129
}
136130
settings.slidesToShow = 1;

components/vc-tree-select/src/util.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,7 @@ function processEntity(entity, wrapper) {
385385
if (currentEntity) {
386386
warning(
387387
false,
388-
`Conflict! value of node '${entity.key}' (${value}) has already used by node '${
389-
currentEntity.key
390-
}'.`,
388+
`Conflict! value of node '${entity.key}' (${value}) has already used by node '${currentEntity.key}'.`,
391389
);
392390
}
393391
wrapper.valueEntities[value] = entity;

0 commit comments

Comments
 (0)