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