mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
chore: update type of Header
This commit is contained in:
parent
19dc14af5c
commit
a20536f850
@ -225,7 +225,7 @@ describe('Calendar', () => {
|
|||||||
value={value}
|
value={value}
|
||||||
validRange={[start, end]}
|
validRange={[start, end]}
|
||||||
locale={{ year: '年' }}
|
locale={{ year: '年' }}
|
||||||
type="date"
|
type="month"
|
||||||
/>,
|
/>,
|
||||||
);
|
);
|
||||||
wrapper
|
wrapper
|
||||||
@ -254,6 +254,6 @@ describe('Calendar', () => {
|
|||||||
.find('input')
|
.find('input')
|
||||||
.at(1)
|
.at(1)
|
||||||
.simulate('change');
|
.simulate('change');
|
||||||
expect(onTypeChange).toBeCalledWith('month');
|
expect(onTypeChange).toBeCalledWith('year');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user