Browse Source

chore: update description

pull/15293/head
zy410419243 6 years ago
parent
commit
355d58b0fa
  1. 4
      components/calendar/__tests__/index.test.js

4
components/calendar/__tests__/index.test.js

@ -196,7 +196,7 @@ describe('Calendar', () => {
.simulate('click');
};
it('if value.month > end.month, value.month -> end.month', () => {
it('if value.month > end.month, set value.month to end.month', () => {
const value = new Moment('1990-01-03');
const start = new Moment('2019-04-01');
const end = new Moment('2019-11-01');
@ -205,7 +205,7 @@ describe('Calendar', () => {
expect(onValueChange).toHaveBeenCalledWith(value.year('2019').month('3'));
});
it('if start.month > value.month, value.month -> start.month ', () => {
it('if start.month > value.month, set value.month to start.month ', () => {
const value = new Moment('1990-01-03');
const start = new Moment('2019-11-01');
const end = new Moment('2019-03-01');

Loading…
Cancel
Save