Skip to content

Commit 9802fb3

Browse files
committed
test: update snap
1 parent 5fd866b commit 9802fb3

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

components/date-picker/__tests__/QuarterPicker.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { QuarterPicker } = DatePicker;
66
jest.mock('../../_util/Portal');
77
describe('QuarterPicker', () => {
88
focusTest(QuarterPicker);
9-
fit('reset select item when popup close', async () => {
9+
it('reset select item when popup close', async () => {
1010
const wrapper = mount(DatePicker, {
1111
props: { style: { width: '400px' }, picker: 'quarter' },
1212
sync: false,

components/date-picker/__tests__/__snapshots__/QuarterPicker.test.js.snap

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ exports[`QuarterPicker reset select item when popup close 1`] = `
1313
<div class="ant-picker-quarter-panel">
1414
<div class="ant-picker-header"><button type="button" tabindex="-1" class="ant-picker-header-super-prev-btn"><span class="ant-picker-super-prev-icon"></span></button>
1515
<!---->
16-
<div class="ant-picker-header-view"><button type="button" class="ant-picker-year-btn">2022</button></div>
16+
<div class="ant-picker-header-view"><button type="button" class="ant-picker-year-btn">2023</button></div>
1717
<!----><button type="button" tabindex="-1" class="ant-picker-header-super-next-btn"><span class="ant-picker-super-next-icon"></span></button>
1818
</div>
1919
<div class="ant-picker-body">
2020
<table class="ant-picker-content">
2121
<!---->
2222
<tbody>
2323
<tr>
24-
<td title="2022-Q1" class="ant-picker-cell ant-picker-cell-in-view">
24+
<td title="2023-Q1" class="ant-picker-cell ant-picker-cell-in-view">
2525
<div class="ant-picker-cell-inner">Q1</div>
2626
</td>
27-
<td title="2022-Q2" class="ant-picker-cell ant-picker-cell-in-view">
27+
<td title="2023-Q2" class="ant-picker-cell ant-picker-cell-in-view">
2828
<div class="ant-picker-cell-inner">Q2</div>
2929
</td>
30-
<td title="2022-Q3" class="ant-picker-cell ant-picker-cell-in-view">
30+
<td title="2023-Q3" class="ant-picker-cell ant-picker-cell-in-view">
3131
<div class="ant-picker-cell-inner">Q3</div>
3232
</td>
33-
<td title="2022-Q4" class="ant-picker-cell ant-picker-cell-in-view">
33+
<td title="2023-Q4" class="ant-picker-cell ant-picker-cell-in-view">
3434
<div class="ant-picker-cell-inner">Q4</div>
3535
</td>
3636
</tr>

components/form/context.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { InjectionKey, ComputedRef } from 'vue';
22
import { inject, provide, computed } from 'vue';
33
import type { ColProps } from '../grid';
4-
import type { RequiredMark, ValidationRule } from './Form';
4+
import type { RequiredMark } from './Form';
55
import type { ValidateStatus, FieldExpose } from './FormItem';
6-
import type { FormLabelAlign, ValidateMessages } from './interface';
6+
import type { FormLabelAlign, Rule, ValidateMessages } from './interface';
77
import { defaultValidateMessages } from './utils/messages';
88

99
export interface FormContextProps {
@@ -20,7 +20,7 @@ export interface FormContextProps {
2020
addField: (eventKey: string, field: FieldExpose) => void;
2121
removeField: (eventKey: string) => void;
2222
validateTrigger?: ComputedRef<string | string[]>;
23-
rules?: ComputedRef<{ [k: string]: ValidationRule[] | ValidationRule }>;
23+
rules?: ComputedRef<{ [k: string]: Rule[] | Rule }>;
2424
onValidate: (
2525
name: string | number | Array<string | number>,
2626
status: boolean,

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ exports[`renders ./components/input/demo/textarea.vue correctly 1`] = `
126126
<textarea placeholder="Basic usage" rows="4" class="ant-input"></textarea>
127127
<br>
128128
<br>
129-
<textarea rows="4" placeholder="maxLength is 6" class="ant-input"></textarea>
129+
<textarea rows="4" placeholder="maxlength is 6" class="ant-input"></textarea>
130130
`;
131131
132132
exports[`renders ./components/input/demo/tooltip.vue correctly 1`] = `<input placeholder="Input a number" type="text" max-length="25" style="width: 120px;" class="ant-input">`;

0 commit comments

Comments
 (0)