chore: update type of Header

This commit is contained in:
zy410419243 2019-03-13 08:57:16 +08:00
parent 19dc14af5c
commit a20536f850

View File

@ -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');
}); });
}); });