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}
validRange={[start, end]}
locale={{ year: '年' }}
type="date"
type="month"
/>,
);
wrapper
@ -254,6 +254,6 @@ describe('Calendar', () => {
.find('input')
.at(1)
.simulate('change');
expect(onTypeChange).toBeCalledWith('month');
expect(onTypeChange).toBeCalledWith('year');
});
});