From 355d58b0fa2f95677f1e90ce37d03a2bce068ae4 Mon Sep 17 00:00:00 2001 From: zy410419243 Date: Mon, 18 Mar 2019 16:07:11 +0800 Subject: [PATCH] chore: update description --- components/calendar/__tests__/index.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/calendar/__tests__/index.test.js b/components/calendar/__tests__/index.test.js index d72d395cf2..5a25b42e96 100644 --- a/components/calendar/__tests__/index.test.js +++ b/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');